API reference: @salmonui/navigation/breadcrumbs
BreadcrumbItemPropsinterface
import type { BreadcrumbItemProps } from '@salmonui/navigation/breadcrumbs';interface BreadcrumbItemProps {
readonly children?: ReactNode;
readonly href?: string | undefined;
readonly target?: string | undefined;
readonly rel?: string | undefined;
readonly icon?: ReactNode;
readonly disabled?: boolean | undefined;
readonly current?: boolean | undefined;
readonly render?: ((props: BreadcrumbItemRenderProps) => ReactElement) | undefined;
readonly onClick?: ((event: MouseEvent<HTMLElement>) => void) | undefined;
readonly className?: string | undefined;
readonly style?: CSSProperties | undefined;
readonly id?: string | undefined;
readonly title?: string | undefined;
}
| Name | Signature | Description |
|---|---|---|
childrenoptional | readonly children?: ReactNode; | The item's label. |
hrefoptional | readonly href?: string | undefined; | Link target. Without |
targetoptional | readonly target?: string | undefined; | |
reloptional | readonly rel?: string | undefined; | |
iconoptional | readonly icon?: ReactNode; | Decorative icon before the label ( |
disabledoptional | readonly disabled?: boolean | undefined; | Not interactive: text with |
currentoptional | readonly current?: boolean | undefined; | The current page ( |
renderoptional | readonly render?: ((props: BreadcrumbItemRenderProps) => ReactElement) | undefined; | Renders another element for the link (a router link): |
onClickoptional | readonly onClick?: ((event: MouseEvent<HTMLElement>) => void) | undefined; | |
classNameoptional | readonly className?: string | undefined; | On the |
styleoptional | readonly style?: CSSProperties | undefined; | On the |
idoptional | readonly id?: string | undefined; | On the |
titleoptional | readonly title?: string | undefined; |