@spark-ui/components
Version:
Spark (Leboncoin design system) components.
65 lines (57 loc) • 1.97 kB
TypeScript
import * as react_jsx_runtime from 'react/jsx-runtime';
import { ComponentPropsWithoutRef, Ref } from 'react';
import { TextLink } from '../text-link/index.js';
import 'class-variance-authority/types';
import 'class-variance-authority';
interface BreadcrumbProps extends ComponentPropsWithoutRef<'nav'> {
className?: string;
['aria-label']: string;
ref?: Ref<HTMLElement>;
}
declare const Breadcrumb$1: {
({ className, "aria-label": ariaLabel, ref, ...rest }: BreadcrumbProps): react_jsx_runtime.JSX.Element;
displayName: string;
};
interface CurrentPageProps extends ComponentPropsWithoutRef<typeof TextLink> {
asChild?: boolean;
className?: string;
ref?: Ref<HTMLAnchorElement>;
}
declare const CurrentPage: {
({ asChild, className, children, ...rest }: CurrentPageProps): react_jsx_runtime.JSX.Element;
displayName: string;
};
interface ItemProps extends ComponentPropsWithoutRef<'li'> {
className?: string;
ref?: Ref<HTMLLIElement>;
}
declare const Item: {
({ className, ...rest }: ItemProps): react_jsx_runtime.JSX.Element;
displayName: string;
};
interface LinkProps extends ComponentPropsWithoutRef<typeof TextLink> {
asChild?: boolean;
className?: string;
href?: string;
ref?: Ref<HTMLAnchorElement>;
}
declare const Link: {
({ asChild, className, bold, intent, underline, href, ref, ...rest }: LinkProps): react_jsx_runtime.JSX.Element;
displayName: string;
};
interface SeparatorProps extends ComponentPropsWithoutRef<'li'> {
asChild?: boolean;
className?: string;
ref?: Ref<HTMLLIElement>;
}
declare const Separator: {
({ asChild, className, children, ref, ...rest }: SeparatorProps): react_jsx_runtime.JSX.Element;
displayName: string;
};
declare const Breadcrumb: typeof Breadcrumb$1 & {
Item: typeof Item;
Link: typeof Link;
CurrentPage: typeof CurrentPage;
Separator: typeof Separator;
};
export { Breadcrumb, type BreadcrumbProps };