diff --git a/packages/components/breadcrumb/src/Breadcrumb.stories.tsx b/packages/components/breadcrumb/src/Breadcrumb.stories.tsx index 372bc57d5..12a801a5b 100644 --- a/packages/components/breadcrumb/src/Breadcrumb.stories.tsx +++ b/packages/components/breadcrumb/src/Breadcrumb.stories.tsx @@ -20,7 +20,9 @@ export const Default: StoryFn = _args => ( - Components + + Components + @@ -44,7 +46,9 @@ export const CustomSeparator: StoryFn = _args => ( - Components + + Components + diff --git a/packages/components/breadcrumb/src/Breadcrumb.tsx b/packages/components/breadcrumb/src/Breadcrumb.tsx index 03bbd9949..4e62a0410 100644 --- a/packages/components/breadcrumb/src/Breadcrumb.tsx +++ b/packages/components/breadcrumb/src/Breadcrumb.tsx @@ -13,7 +13,7 @@ export const Breadcrumb = forwardRef( data-spark-component="breadcrumb" ref={ref} aria-label={ariaLabel} - className={cx('text-caption', className)} + className={cx('text-caption text-neutral', className)} >
    diff --git a/packages/components/breadcrumb/src/BreadcrumbLink.tsx b/packages/components/breadcrumb/src/BreadcrumbLink.tsx index dfc8d8b9c..340d71b52 100644 --- a/packages/components/breadcrumb/src/BreadcrumbLink.tsx +++ b/packages/components/breadcrumb/src/BreadcrumbLink.tsx @@ -1,15 +1,27 @@ import { Slot } from '@spark-ui/slot' +import { TextLink } from '@spark-ui/text-link' import { ComponentPropsWithoutRef, forwardRef } from 'react' -export interface LinkProps extends ComponentPropsWithoutRef<'a'> { +export interface LinkProps extends ComponentPropsWithoutRef { asChild?: boolean className?: string href?: string } export const Link = forwardRef( - ({ asChild = false, className, href, ...rest }, ref) => { - const Component = asChild ? Slot : 'a' + ( + { + asChild = false, + className, + bold = true, + intent = 'current', + underline = true, + href, + ...rest + }, + ref + ) => { + const Component = asChild ? Slot : TextLink return ( ( href={href} ref={ref} className={className} + bold={bold} + intent={intent} + underline={underline} {...rest} /> )