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 { Sparkles } from "lucide-react";
export default function BasicDemo() {
return <Icon icon={Sparkles} 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: sm 14 / md 16 / lg 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.