Files
web/packages/design-system/lib/components/ChipLink/ChipLink.tsx
Rasmus Langvad d0546926a9 Merged in fix/3697-prettier-configs (pull request #3396)
fix(SW-3691): Setup one prettier config for whole repo

* Setup prettierrc in root and remove other configs


Approved-by: Joakim Jäderberg
Approved-by: Linus Flood
2026-01-07 12:45:50 +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>
)
}