Overlays
Sheet
bottom sheet shell
function SheetDemo() { const [open, setOpen] = React.useState(false); return ( <> <Button variant="outline" className="w-full" onPress={() => setOpen(true)}> <Text>Open sheet</Text> </Button> <Sheet open={open} onClose={() => setOpen(false)} title="Custom content" description="Anything goes in here."> <View className="gap-3 px-5 pb-2"> <Text>Sheets scroll and cap at 85% of the screen.</Text> <Button onPress={() => setOpen(false)}> <Text>Done</Text> </Button> </View> </Sheet> </> );}Usage
The base for OptionSheet and ActionSheet. Native mobile pattern; prefer over Dialog for pickers.
API
<Sheet open onClose title? description?>{children}</Sheet>Get it
Already in every copy of the native kit:
import { Sheet } from '@/components/kit/sheet';Details
- Exports
Sheet- 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
- bottom sheet, drawer, modal sheet
- Registry JSON
- /r/native/sheet.json
<Sheet> <SheetTrigger asChild> <Button variant="outline">Filters</Button> </SheetTrigger> <SheetContent> <SheetHeader> <SheetTitle>Filters</SheetTitle> <SheetDescription>Narrow the invoice list.</SheetDescription> </SheetHeader> </SheetContent></Sheet>Get it
Already in every copy of the web kit:
import { Sheet, SheetTrigger, SheetContent, SheetHeader, SheetTitle, SheetDescription, SheetFooter } from '@/components/ui/sheet';Details
- Exports
Sheet,SheetTrigger,SheetContent,SheetHeader,SheetTitle,SheetDescription,SheetFooter- Packages
- cn@^0.5.2, lucide-react@^1.52.0, radix-ui@^1.7.0
- Also searched as
- drawer, side panel
- Registry JSON
- /r/web/sheet.json
Agents: the whole registry is at /llms.txt.