Loading preview
Analog Clock
Data displayA station clock whose needle waits at twelve; drag the minute hand to set it by hand.
A board of handwritten sticky notes you can drag around; the one you grab comes to the front.
npx shadcn@latest add @venusui/sticky-notesRun this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.
Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.
@/components/ui/sticky-notes.tsxThe code behind the preview above.
sticky-notes-demo.tsx
import { StickyNotes } from "@/components/ui/sticky-notes"
export default function StickyNotesDemo() {
return (
<StickyNotes
notes={[
{ id: "1", text: "Ship the pricing page by Friday!", color: "yellow", x: 6, y: 10, rotate: -4 },
{ id: "2", text: "Ask Sofie for the new onboarding screens", color: "pink", x: 30, y: 30, rotate: 3 },
{ id: "3", text: "Coffee with Marcus at 3", color: "blue", x: 56, y: 8, rotate: -2 },
{ id: "4", text: "Retro ideas: fewer meetings, more demos", color: "green", x: 70, y: 46, rotate: 5 },
{ id: "5", text: "Book flights for the offsite", color: "yellow", x: 12, y: 56, rotate: 2 },
]}
/>
)
}
| Prop | Type | Default | Description |
|---|---|---|---|
| notes | StickyNote[] | — | Each has id, text, a starting x and y (percent of the board), and optionally color (yellow, pink, blue, green) and rotate (degrees). |
All <div> props; className styles the board (4:3).
HANDWRITING for the same look everywhere.role="note") and the arrow keys move it; hold Shift for bigger steps.relative position and aspect ratio; notes are placed in percent of its size.Unknown registry "@venusui"npx shadcn@latest), install by URL, or register it with its address: npx shadcn@latest registry add @venusui=https://venusui.com/r/{name}.json.No components.json foundnpx shadcn@latest init in your project first.A station clock whose needle waits at twelve; drag the minute hand to set it by hand.
Books on a wooden shelf whose spines lift on hover and pull out when selected, with a matching cover.
A messaging conversation that plays out with typing indicators; viewers can send replies too.