Skip to content
Klarhimmel UI

Icon circle

Guest chat
npx shadcn add https://ui.klarhimmel.com/r/icon-circle.json
DetailsAbout, 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
icon-circle.tsx
import { Sparkles } from 'lucide-react';
import { Theme } from '@/components/klarhimmel/theme/style';
import { IconCircle } from '@/components/klarhimmel/ui/icon-circle';

export default function Example() {
  return (
    <Theme theme="brand">
      <span className="flex items-center gap-3 font-medium"><IconCircle icon={<Sparkles />} />Guest chat</span>
    </Theme>
  );
}

Import

Import

import { IconCircle } from '@/components/klarhimmel/ui/icon-circle';
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

PropTypeDefaultDescription
iconReactNoderequiredRequired. 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.
classNamestring-Extra classes, merged after the component's own.