23 lines
603 B
TypeScript
23 lines
603 B
TypeScript
import type { VariantProps } from "class-variance-authority"
|
|
import type { PropsWithChildren } from "react"
|
|
import type { BreadcrumbProps as AriaBreadcrumbProps } from "react-aria-components"
|
|
|
|
import type { breadcrumbsVariants } from "./variants"
|
|
|
|
export type { Breadcrumb, BreadcrumbProps, BreadcrumbsProps }
|
|
|
|
type Breadcrumb = {
|
|
title: string
|
|
uid: string
|
|
href?: string
|
|
}
|
|
|
|
interface BreadcrumbsProps extends VariantProps<typeof breadcrumbsVariants> {
|
|
breadcrumbs: Breadcrumb[]
|
|
}
|
|
|
|
interface BreadcrumbProps extends PropsWithChildren<AriaBreadcrumbProps> {
|
|
className?: string
|
|
href?: string
|
|
}
|