welcome-ui
Version:
Customizable design system with react, typescript, tailwindcss and ariakit.
21 lines (20 loc) • 728 B
TypeScript
import { ComponentPropsWithRef, HTMLAttributes } from 'react';
import { IconName } from '../Icon/types';
interface BreadcrumbOptions {
children: React.ReactNode | React.ReactNode[];
icon?: boolean | IconName;
/** set clickable or not the last child */
lastChildNotClickable?: boolean;
separator?: React.ReactNode | string;
}
export type BreadcrumbProps = BreadcrumbOptions & ComponentPropsWithRef<'div'> & HTMLAttributes<HTMLDivElement>;
export interface BreadcrumbItemOptions {
children: React.ReactNode;
collapsed?: boolean;
'data-testid'?: string;
icon?: boolean | IconName;
isActive?: boolean | React.ReactNode;
separator?: React.ReactNode | string;
to?: string;
}
export {};