Skip to content

Theming and styles

The default stylesheet includes four variants: default, dark, minimal and compact. The size options are small, medium and large.

classNames and styles accept root, trigger, modal, header, footer, grid, row, cell and tag. Each styles entry accepts React CSS properties and custom properties such as --lookup-select-color-primary. Custom renderers own their markup and apply any supplied styles themselves.

Parts to add to order
Choose parts…

Search by part or SKU, select records, then apply. Cancel leaves the previous value unchanged.

Committed value
[]
<LookupSelect
data={parts}
columns={columns}
mapper={mapper}
theme={{
colorPrimary: '#18584d',
colorBg: '#ffffff',
colorText: '#26332d',
borderRadius: 6,
spacing: 8,
}}
classNames={{ root: 'part-picker', grid: 'part-grid' }}
styles={{ modal: { maxWidth: '90vw' } }}
/>

The default modal is portaled outside the trigger subtree. Theme classes and lookup CSS variables are forwarded to the overlay. Do not rely on descendant selectors anchored to the trigger for styling a portaled modal; use the modal class name or theme tokens.

.part-picker {
--lookup-select-color-primary: #18584d;
--lookup-select-border-radius: 6px;
--lookup-select-grid-row-height: 44px;
}

See the theme token stylesheet for the current complete CSS variable list.