Files
web/packages/design-system/lib/components/ChipLink/ChipLink.tsx
Erik Tiekstra 891108791c feat(SW-2264): Added campaign overview page
Approved-by: Matilda Landström
2025-06-19 15:19:56 +00:00

25 lines
574 B
TypeScript

import { cx } from 'class-variance-authority'
import { Typography } from '../Typography'
import styles from './chip-link.module.css'
import type { PropsWithChildren } from 'react'
import {
Link as LinkRAC,
LinkProps as LinkRACProps,
} from 'react-aria-components'
export function ChipLink({
children,
className,
...props
}: PropsWithChildren<LinkRACProps>) {
return (
<Typography variant="Body/Supporting text (caption)/smBold">
<LinkRAC {...props} className={cx(styles.chip, className)}>
{children}
</LinkRAC>
</Typography>
)
}