Lynx

Select Box

A UI element that uses a container with a clear border to select one or more options from a defined list.

Engine ≥ 3.6
Available since@seed-design/lynx-react@0.6.0, @seed-design/lynx-css@0.10.0
Loading Lynx example…

Icon colors are not applied in the document preview. You can verify the actual icon colors by running Lynx Explorer from the QR code tab.

Installation

npx @seed-design/cli@latest add ui:select-box

Props

Check Select Box

CheckSelectBoxGroup

Prop

Type

style?CSSProperties | undefined
children?React.ReactNode
className?string | undefined

CheckSelectBox

Prop

Type

labelReact.ReactNode
description?React.ReactNode
prefixIcon?React.ReactElement<LynxIconElementProps, string | React.JSXElementConstructor<any>> | undefined
suffix?React.ReactNode
className?string | undefined
checked?boolean | undefined
defaultChecked?boolean | undefined
indeterminate?boolean | undefined
onCheckedChange?((checked: boolean) => void) | undefined
style?CSSProperties | undefined

CheckSelectBoxCheckmark

Prop

Type

style?CSSProperties | undefined
children?React.ReactNode
className?string | undefined

Radio Select Box

RadioSelectBoxRoot

Prop

Type

value?string | undefined
defaultValue?string | undefined
onValueChange?((value: string) => void) | undefined
style?CSSProperties | undefined
children?React.ReactNode
className?string | undefined

RadioSelectBoxItem

Prop

Type

labelReact.ReactNode
description?React.ReactNode
prefixIcon?React.ReactElement<LynxIconElementProps, string | React.JSXElementConstructor<any>> | undefined
suffix?React.ReactNode
className?string | undefined
disabled?boolean | undefined
style?CSSProperties | undefined
valuestring

RadioSelectBoxRadiomark

Prop

Type

style?CSSProperties | undefined
children?React.ReactNode
className?string | undefined

Examples

Customizing Label

You can pass custom content combining multiple elements to the label prop.

Loading Lynx example…

Listening to Value Changes

CheckSelectBox can detect checkbox selection state changes using onCheckedChange.

RadioSelectBoxRoot can detect radio button selection value changes using onValueChange.

Loading Lynx example…

Grid Layout (Columns)

You can arrange items in multiple columns using the columns prop. If columns is greater than 1, the layout of child elements is automatically set to "vertical".

If needed, you can override the layout of individual items by setting the layout prop directly.

Loading Lynx example…

With Suffix

You can display a checkmark, radio mark, or custom element using the suffix prop. You can use CheckSelectBoxCheckmark and RadioSelectBoxRadiomark, or pass any free-form element such as an icon or text.

Loading Lynx example…

You can display additional content with the footer prop. You can control the footer display conditions with the footerVisibility prop.

  • "when-selected" (default): Display only when the item is selected
  • "when-not-selected": Display only when the item is not selected
  • "always": Always display
Loading Lynx example…

Differences from Web Version

Lynx Select Box has the following differences from the React version.

  • React Hook Form not supported: Lynx does not have a native form submission model, so we do not provide React Hook Form examples.
  • No field wrapper: We do not provide integration with Fieldset and RadioGroupField from React Registry, or field label, description, and error message connections.
  • No form submission: We do not provide hidden input, inputProps, name, required, or invalid.
  • No keyboard focus: Uses native tap and accessibility navigation instead of browser keyboard focus.
  • Accessibility: Uses Lynx accessibility roles and selection values instead of HTML ARIA.

Table of contents