feat(SW-368): added link chips component
This commit is contained in:
19
components/TempDesignSystem/LinkChips/Chip/index.tsx
Normal file
19
components/TempDesignSystem/LinkChips/Chip/index.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
import Link from "next/link"
|
||||
|
||||
import { ChevronRightSmallIcon } from "@/components/Icons"
|
||||
import Caption from "@/components/TempDesignSystem/Text/Caption"
|
||||
|
||||
import { LinkChipProps } from "./chip"
|
||||
|
||||
import styles from "./chip.module.css"
|
||||
|
||||
export default function LinkChip({ url, title }: LinkChipProps) {
|
||||
return (
|
||||
<Caption textTransform="bold" color="burgundy" asChild>
|
||||
<Link href={url} className={styles.linkChip}>
|
||||
{title}
|
||||
<ChevronRightSmallIcon color="burgundy" width={20} height={20} />
|
||||
</Link>
|
||||
</Caption>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user