Toggle
A button that stays pressed in, like a lever.
Q3 Roadmap
Edited by Hollis Grant
Install and use
The first command adds the component and the Mine theme, the second adds this example. Render <Mine> once near your root for the skin, sounds and narrator.
"use client"
import { Toggle, ToggleIcon } from "@/components/ui/toggle"
import { StarIcon } from "lucide-react"
function Example() {
return (
<div data-slot="card">
<div data-slot="stack">
<h3>Q3 Roadmap</h3>
<p data-slot="hint">Edited by Hollis Grant</p>
</div>
<Toggle aria-label="Star">
<ToggleIcon data-variant="fill">
<StarIcon />
</ToggleIcon>
</Toggle>
</div>
)
}
export { Example }