Icon
A decorative glyph slot that renders an SVG icon, sized and tinted from its container.
Show codeHide code
Installation
import { Icon } from "@makeplane/propel/components/icon";Usage
import { Icon } from "@makeplane/propel/components/icon";
import { AiStar1Outline } from "@makeplane/propel/icons";
export default function BasicDemo() {
return <Icon icon={AiStar1Outline} size="md" />;
}Examples
Tints
The tint axis colors the glyph. inherit (the default) takes currentColor from the container; the semantic tints override it. placeholder is the input-adornment tint — muted at rest, brightening when the enclosing control is focused — while muted is its plain static form.
Show codeHide code
Sizes
size pins the glyph to a ladder rung: xs and sm 14 px, md, lg and xl 16 px, 2xl 20 px. It defaults to inherit, which takes the
size from the surrounding control’s --node-size — that is what you want almost everywhere,
since every sized component already sets it. Reach for an explicit step only outside such a
container.
Show codeHide code
API Reference
Icon
Public decorative icon slot. Pass the element this creates into components with icon slots
(startIcon, endIcon, or icon) so those components render it directly.