(props: CardProps)
| 5 | } |
| 6 | |
| 7 | export function Card(props: CardProps) { |
| 8 | const [split, rest] = splitProps(props, ["variant", "class", "classList"]) |
| 9 | return ( |
| 10 | <div |
| 11 | {...rest} |
| 12 | data-component="card" |
| 13 | data-variant={split.variant || "normal"} |
| 14 | classList={{ |
| 15 | ...(split.classList ?? {}), |
| 16 | [split.class ?? ""]: !!split.class, |
| 17 | }} |
| 18 | > |
| 19 | {props.children} |
| 20 | </div> |
| 21 | ) |
| 22 | } |
nothing calls this directly
no outgoing calls
no test coverage detected