Beta modeInstall commands on this page use lovdacn@beta, which installs from the beta registry and may change before the stable release.What’s in beta

Sheet

Extends the Dialog component to content that slides in from the edge of the screen.

Loading preview…

Sheet is in beta. This component was recently added and will be stabled soon.

Installation

npx lovdacn@latest add sheet

(You can also use the shortened lvcn alias, e.g., npx lvcn@latest add sheet)

Registry dependencies: icon, text, utils, native-only-animated-view

Usage

import { Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle, SheetTrigger } from "@/components/ui/sheet"
import { Button, Text } from "react-native"

export function Example() {
  return (
    <Sheet>
      <SheetTrigger asChild>
        <Button title="Open Sheet" />
      </SheetTrigger>
      <SheetContent side="right">
        <SheetHeader>
          <SheetTitle>Sheet Panel</SheetTitle>
          <SheetDescription>
            This slides in from the right edge.
          </SheetDescription>
        </SheetHeader>
      </SheetContent>
    </Sheet>
  )
}