snapshot of https://github.com/shadcn-ui/ui.git (main, 2026-09-15; blobs > 131072B omitted)
This commit is contained in:
28
apps/v4/examples/radix/sheet-no-close-button.tsx
Normal file
28
apps/v4/examples/radix/sheet-no-close-button.tsx
Normal file
@@ -0,0 +1,28 @@
|
||||
import { Button } from "@/styles/radix-nova/ui/button"
|
||||
import {
|
||||
Sheet,
|
||||
SheetContent,
|
||||
SheetDescription,
|
||||
SheetHeader,
|
||||
SheetTitle,
|
||||
SheetTrigger,
|
||||
} from "@/styles/radix-nova/ui/sheet"
|
||||
|
||||
export default function SheetNoCloseButton() {
|
||||
return (
|
||||
<Sheet>
|
||||
<SheetTrigger asChild>
|
||||
<Button variant="outline">Open Sheet</Button>
|
||||
</SheetTrigger>
|
||||
<SheetContent showCloseButton={false}>
|
||||
<SheetHeader>
|
||||
<SheetTitle>No Close Button</SheetTitle>
|
||||
<SheetDescription>
|
||||
This sheet doesn't have a close button in the top-right corner.
|
||||
Click outside to close.
|
||||
</SheetDescription>
|
||||
</SheetHeader>
|
||||
</SheetContent>
|
||||
</Sheet>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user