Skip to content

Commit 74fc719

Browse files
authored
Fix tailwind build on main (#6516)
1 parent a857ec7 commit 74fc719

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

starters/tailwind/src/Breadcrumbs.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@ import React from 'react';
33
import { Breadcrumb as AriaBreadcrumb, Breadcrumbs as AriaBreadcrumbs, BreadcrumbProps, BreadcrumbsProps, LinkProps } from 'react-aria-components';
44
import { twMerge } from 'tailwind-merge';
55
import { Link } from './Link';
6+
import { composeTailwindRenderProps } from './utils';
67

78
export function Breadcrumbs<T extends object>(props: BreadcrumbsProps<T>) {
89
return <AriaBreadcrumbs {...props} className={twMerge('flex gap-1', props.className)} />;
910
}
1011

11-
export function Breadcrumb(props: BreadcrumbProps & LinkProps) {
12+
export function Breadcrumb(props: BreadcrumbProps & Omit<LinkProps, 'className'>) {
1213
return (
13-
<AriaBreadcrumb {...props} className={twMerge('flex items-center gap-1', props.className)}>
14+
<AriaBreadcrumb {...props} className={composeTailwindRenderProps(props.className, 'flex items-center gap-1')}>
1415
<Link variant="secondary" {...props} />
1516
{props.href && <ChevronRight className="w-3 h-3 text-gray-600 dark:text-zinc-400" />}
1617
</AriaBreadcrumb>

0 commit comments

Comments
 (0)