Component docs
Loading
import { Icon } from "@pixxl-tools/components";
// In Server Components:
import { Icon } from "@pixxl-tools/components/server";| Prop | Type | Default | Description |
|---|---|---|---|
color | string | — | — |
directional | boolean | — | Mirror the icon horizontally in right-to-left layouts. |
size | IconSize | — | Size from the shared scale (xs, sm, md, lg). |
title | string | — | Title (any content). |
colorstring
directionalboolean
Mirror the icon horizontally in right-to-left layouts.
sizeIconSize
Size from the shared scale (xs, sm, md, lg).
titlestring
Title (any content).
Other props are passed to the root element (SVGProps<SVGSVGElement>), including className, style, id and aria-* attributes.
<Icon><SearchIcon /></Icon>