UI component

Icon

Icon is a thin typed wrapper around Lucide icons so consumers can keep package imports consistent without losing SVG flexibility.

Installation

Install the package in your app.

pnpm add @rapidset/rapidkit

Usage

Import components from the package entrypoint.

import { Icon } from '@rapidset/rapidkit';

Examples

Preview the component and copy the snippet.

API Reference

Commonly used props at a glance.

PropDescription
iconPasses the Lucide icon component you want to render.
classNameStyles the icon with the same utility classes you already use elsewhere.
size and strokeWidthFine-tunes icon scale and line weight through standard SVG props.
aria-* propsAdds labels or hides decorative icons based on the job the icon is doing.

Accessibility

Accessibility is fully consumer-controlled: label meaningful icons and hide decorative ones with the standard SVG ARIA attributes.