Skip to main content
239

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Themes
React Native docs
FormsReact Native

List box

Pick one or more options from an always-visible list.

Public APILumenListBoxReact Native

Native example

Use List box

Use it when options should stay visible. Use a select for long lists in tight space.

List box rendered in the Expo web renderer Lumen playground

Captured exampleExpo web renderer

Open interactive preview
Open the List box demo
tsx
import { useState } from 'react'
import { LumenListBox } from '@santi020k/lumen-react-native'

export const TeamPicker = () => {
  const [members, setMembers] = useState<string[]>(['amina'])

  return (
    <LumenListBox
      label="Team members"
      multiple
      onValueChange={setMembers}
      options={[
        { label: 'Amina', section: 'Design', value: 'amina' },
        { label: 'Luca', section: 'Design', value: 'luca' },
        { label: 'Theo', section: 'Engineering', value: 'theo' }
      ]}
      value={members}
    />
  )
}
React Native
Keeps options visible in a scrolling list for single or multiple selection, with optional sections.

Reference

Public API

The primary shared and platform-specific options exposed by LumenListBox.

APIValues or typeDefaultDescription
options / value / multipleoptions and sections / selected values / multiple selectionrequired / none / falseUse it when options should stay visible.

Native behavior

Design and accessibility

When to use it

Use it when options should stay visible. Use a select for long lists in tight space.

Accessibility

A named list whose options expose selected and disabled states.

Shared component

Available on other platforms

Apple / SwiftUIAndroid / Compose Web
React Native docsNative primitives