Icon circle
Guest chat
npx shadcn add https://ui.klarhimmel.com/r/icon-circle.jsonCopy for AIDetailsAbout, usage, props and more
A round 40 px tile behind a settings or feature icon, in Klarhimmel's blue whatever the theme.
Preview
Icon circle
Import
Import
- Files
- icon-circle.tsx, in components/klarhimmel/ui/. With it: theme, utils.
- Render in
- Render it inside <Theme>, once near the root of your app. Tokens and fonts are scoped to it, so outside it the component is unstyled.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
icon | ReactNode | required | Required. A 20 px lucide icon; the row's text names it, so the circle is hidden from assistive tech. |
tone | 'brand' | 'accent' | 'brand' | brand is Klarhimmel's blue under any theme; accent is the theme's own. |
className | string | - | Extra classes, merged after the component's own. |