import { type IconProp } from '../icon';
type Props = {
label: string;
/** Icon — string SVG source, `{ src, color?, size? }` object, or custom snippet. */
icon: IconProp;
/** Render as `` — unless `disabled`, which falls back to the button form. `on.click` still fires; `event.preventDefault()` keeps the click from navigating. */
href?: string;
/** Highlight as the current section. Consumer-controlled. @default false */
active?: boolean;
/** Paint the tile in the danger color to signal an error in its section. @default false */
error?: boolean;
disabled?: boolean;
/** Anchor target — only relevant when `href` is set. */
target?: string;
/** Anchor rel — only relevant when `href` is set. */
rel?: string;
on?: {
click?: (event: MouseEvent) => void;
};
};
/**
* NavRailItem — one icon-and-label tile inside a `NavRail`. Renders as `` when `href` is set and
* enabled, `