feat(WEB-249): first iteration design system primitives (typography, grid)
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
import { cva } from "class-variance-authority"
|
||||
|
||||
import Title from "./Title"
|
||||
|
||||
import styles from "./card.module.css"
|
||||
|
||||
import type { CardProps } from "@/types/components/myPages/myProfile/card/card"
|
||||
|
||||
const cardStyles = cva(styles.card)
|
||||
|
||||
export default function Card({ className, tag = "section", ...props }: CardProps) {
|
||||
export default function Card({
|
||||
className,
|
||||
tag = "section",
|
||||
...props
|
||||
}: CardProps) {
|
||||
const Cmp = tag
|
||||
return <Cmp className={cardStyles({ className })} {...props} />
|
||||
}
|
||||
|
||||
Card.Title = Title
|
||||
|
||||
Reference in New Issue
Block a user