snapshot of https://github.com/shadcn-ui/ui.git (main, 2026-09-15; blobs > 131072B omitted)
This commit is contained in:
17
apps/v4/registry/new-york-v4/examples/toggle-demo.tsx
Normal file
17
apps/v4/registry/new-york-v4/examples/toggle-demo.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { BookmarkIcon } from "lucide-react"
|
||||
|
||||
import { Toggle } from "@/registry/new-york-v4/ui/toggle"
|
||||
|
||||
export default function ToggleDemo() {
|
||||
return (
|
||||
<Toggle
|
||||
aria-label="Toggle bookmark"
|
||||
size="sm"
|
||||
variant="outline"
|
||||
className="data-[state=on]:bg-transparent data-[state=on]:*:[svg]:fill-blue-500 data-[state=on]:*:[svg]:stroke-blue-500"
|
||||
>
|
||||
<BookmarkIcon />
|
||||
Bookmark
|
||||
</Toggle>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user