Overlays
Option sheet
pick one of N
function OptionSheetDemo() { const [open, setOpen] = React.useState(false); const [v, setV] = React.useState<'one' | 'two' | 'three'>('one'); return ( <> <Button variant="outline" className="w-full" onPress={() => setOpen(true)}> <Text>Selected: {OPTIONS.find((o) => o.value === v)?.label}</Text> </Button> <OptionSheet open={open} onClose={() => setOpen(false)} title="Choose an option" options={OPTIONS} value={v} onChange={setV} /> </> );}API
<OptionSheet open onClose title options={[{value,label,description?,icon?}]} value onChange />Get it
Already in every copy of the native kit:
import { OptionSheet } from '@/components/kit/sheet';Details
- Exports
OptionSheet- Packages
- lucide-react-native@^1.21.0, react-native-safe-area-context@~5.7.0
- Installs with
- @halftone-native/icon, @halftone-native/lib-haptics, @halftone-native/lib-reduced-motion, @halftone-native/lib-theme, @halftone-native/lib-utils, @halftone-native/text
- Also searched as
- picker, select sheet, choose one
- Registry JSON
- /r/native/sheet.json
Agents: the whole registry is at /llms.txt.