fix: refactor breadcrumbs to take page type variants to better match margins

This commit is contained in:
Christel Westerberg
2025-01-03 11:39:24 +01:00
parent 053ef4a1c9
commit 5901cab440
46 changed files with 286 additions and 175 deletions

View File

@@ -1,9 +1,14 @@
import type { VariantProps } from "class-variance-authority"
import type { breadcrumbsVariants } from "./variants"
type Breadcrumb = {
title: string
uid: string
href?: string
}
export interface BreadcrumbsProps {
export interface BreadcrumbsProps
extends VariantProps<typeof breadcrumbsVariants> {
breadcrumbs: Breadcrumb[]
}