Skip to content

Icons

Icon explorer

Showing 12031 of 12031 iconsClick any icon to preview, tune & copy code

Displaying first 180 icons matching search. Use the search bar above to instantly find any of the 12031 icons.

Custom SVG

@shavin/ui ships four icon sets: Lucide, Phosphor, Radix and Material Design. Pass a name with name; when two sets share a name, Lucide wins, then Phosphor, Radix and Material. For anything else, such as a brand mark, pass a component or an SVG element to the icon prop.

Pass a component

Icon renders the component with the size, colour class and props you set. Your component should pass className and the rest of its props to its root <svg>.

import { Icon } from "@shavin/ui";
import { MyCustomBrandmark } from "./MyCustomBrandmark";

export function Header() {
  return (
    <Icon
      icon={MyCustomBrandmark}
      size="xl"
      color="brand"
      aria-label="Company logo"
    />
  );
}
Pass an SVG element

Pass the element itself to icon. Icon wraps it in a span with the size and colour classes, and the size class also sets the width and height of the inner <svg>. Children are ignored.

import { Icon } from "@shavin/ui";

<Icon
  size="2xl"
  color="brand"
  icon={
    <svg viewBox="0 0 24 24" fill="currentColor">
      <path d="M12 2L2 22h20L12 2z" />
    </svg>
  }
/>

Sizes and stroke

Size tokensxs to 3xl

The default is md. xs (12px), sm (16px), md (20px), lg (24px), xl (32px), 2xl (40px), 3xl (48px).

Pixel sizesAny number or CSS size

Pass a number of pixels, such as size=64, or a CSS size string. Icon sets the width and height inline.

StrokestrokeWidth, default 2

Applies to Lucide icons only; Phosphor, Radix and Material icons ignore it. The explorer offers 0.5 to 3 in 0.25 steps. Set absoluteStrokeWidth to keep the stroke the same width at every size.

Configure Theme
Theme
Brand Color
Custom
Gray Family
Appearance
Radius
Scaling
Panel Style
Heading Font
Body Font