MCPcopy Create free account
hub / github.com/arctic-cli/interface / Card

Function Card

packages/ui/src/components/card.tsx:7–22  ·  view source on GitHub ↗
(props: CardProps)

Source from the content-addressed store, hash-verified

5}
6
7export 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected