Components
Tooltip
A hand-drawn callout that appears on hover with a rough polygon arrow.
Installation
package manager
npx shadcn add https://bydefaulthuman.fun/r/tooltip.jsonProps
PropTypeDefaultDescription
children*ReactNode—
Content rendered inside the component.
classNamestring"relative inline-flex"Additional Tailwind classes applied to the component.
content*ReactNode—
Content rendered inside the overlay.
delayMsnumber400Delay before the tooltip opens, in milliseconds.
idstring—
Optional stable id used for sketch seeding and accessibility.
sideTooltipSide"top"Preferred side or placement.
themeCrumbleTheme—
Overrides the global Crumble theme for this instance.
Sides
Custom delay
Accessibility
Tooltip content is supplemental, not primary. Do not put critical instructions only inside the tooltip, because hover-only disclosure is easy to miss on touch devices and with keyboard navigation.
Examples
import { Tooltip } from "@/components/crumble/ui/tooltip";
<Tooltip content="Save your work">
<Button>Save</Button>
</Tooltip>;