UNPKG

@arolariu/components

Version:

🎨 70+ beautiful, accessible React components built on Base UI. TypeScript-first, CSS Modules styling, tree-shakeable, SSR-ready. Perfect for modern web apps, design systems & rapid prototyping. Zero config, maximum flexibility! ⚡

165 lines • 5.54 kB
import * as React from "react"; /** * Props for the {@link Breadcrumb} component. */ export interface BreadcrumbProps extends React.ComponentPropsWithoutRef<"nav"> { /** Reserved separator content prop for custom breadcrumb compositions. @default undefined */ separator?: React.ReactNode; } /** * Props for the {@link BreadcrumbList} component. */ export type BreadcrumbListProps = React.ComponentPropsWithoutRef<"ol">; /** * Props for the {@link BreadcrumbItem} component. */ export type BreadcrumbItemProps = React.ComponentPropsWithoutRef<"li">; /** * Props for the {@link BreadcrumbLink} component. */ export interface BreadcrumbLinkProps extends React.ComponentPropsWithoutRef<"a"> { /** Enables rendering an existing anchor-compatible child element. @default false */ asChild?: boolean; } /** * Props for the {@link BreadcrumbPage} component. */ export type BreadcrumbPageProps = React.ComponentPropsWithoutRef<"span">; /** * Props for the {@link BreadcrumbSeparator} component. */ export type BreadcrumbSeparatorProps = React.ComponentPropsWithoutRef<"li">; /** * Props for the {@link BreadcrumbEllipsis} component. */ export type BreadcrumbEllipsisProps = React.ComponentPropsWithoutRef<"span">; /** * Provides semantic breadcrumb navigation for hierarchical page structures. * * @remarks * - Pure CSS component (no Base UI primitive) * - Renders a `<nav>` element * - Styling via CSS Modules with `--ac-*` custom properties * * @example * ```tsx * <Breadcrumb> * <BreadcrumbList> * <BreadcrumbItem> * <BreadcrumbLink href='/'>Home</BreadcrumbLink> * </BreadcrumbItem> * </BreadcrumbList> * </Breadcrumb> * ``` * * @see {@link BreadcrumbProps} for available props */ declare const Breadcrumb: React.ForwardRefExoticComponent<BreadcrumbProps & React.RefAttributes<HTMLElement>>; /** * Groups breadcrumb items inside an ordered list. * * @remarks * - Pure CSS component (no Base UI primitive) * - Renders an `<ol>` element * - Styling via CSS Modules with `--ac-*` custom properties * * @example * ```tsx * <BreadcrumbList> * <BreadcrumbItem /> * </BreadcrumbList> * ``` * * @see {@link BreadcrumbListProps} for available props */ declare const BreadcrumbList: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "ref"> & React.RefAttributes<HTMLOListElement>>; /** * Wraps a single breadcrumb node within the list. * * @remarks * - Pure CSS component (no Base UI primitive) * - Renders an `<li>` element * - Styling via CSS Modules with `--ac-*` custom properties * * @example * ```tsx * <BreadcrumbItem> * <BreadcrumbLink href='/docs'>Docs</BreadcrumbLink> * </BreadcrumbItem> * ``` * * @see {@link BreadcrumbItemProps} for available props */ declare const BreadcrumbItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>; /** * Renders a navigable breadcrumb link with optional child element composition. * * @remarks * - Pure CSS component (no Base UI primitive) * - Renders an `<a>` element by default * - Styling via CSS Modules with `--ac-*` custom properties * * @example * ```tsx * <BreadcrumbLink href='/settings'>Settings</BreadcrumbLink> * ``` * * @see {@link BreadcrumbLinkProps} for available props */ declare const BreadcrumbLink: React.ForwardRefExoticComponent<BreadcrumbLinkProps & React.RefAttributes<HTMLAnchorElement>>; /** * Marks the current page within the breadcrumb trail. * * @remarks * - Pure CSS component (no Base UI primitive) * - Renders a `<span>` element * - Styling via CSS Modules with `--ac-*` custom properties * * @example * ```tsx * <BreadcrumbPage>Current page</BreadcrumbPage> * ``` * * @see {@link BreadcrumbPageProps} for available props */ declare const BreadcrumbPage: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>; /** * Displays visual separation between breadcrumb items. * * @remarks * - Pure CSS component (no Base UI primitive) * - Renders an `<li>` element * - Defaults to a `ChevronRight` separator icon when `children` is not provided * - Styling via CSS Modules with `--ac-*` custom properties * * @example * ```tsx * <BreadcrumbSeparator /> * ``` * * @example Custom separator * ```tsx * <BreadcrumbSeparator>/</BreadcrumbSeparator> * ``` * * @see {@link BreadcrumbSeparatorProps} for available props */ declare const BreadcrumbSeparator: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>; /** * Indicates collapsed breadcrumb items in truncated navigation trails. * * @remarks * - Pure CSS component (no Base UI primitive) * - Renders a `<span>` element * - Styling via CSS Modules with `--ac-*` custom properties * * @example * ```tsx * <BreadcrumbEllipsis /> * ``` * * @see {@link BreadcrumbEllipsisProps} for available props */ declare const BreadcrumbEllipsis: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>; export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator }; //# sourceMappingURL=breadcrumb.d.ts.map