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

Function Tag

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

Source from the content-addressed store, hash-verified

5}
6
7export function Tag(props: TagProps) {
8 const [split, rest] = splitProps(props, ["size", "class", "classList", "children"])
9 return (
10 <span
11 {...rest}
12 data-component="tag"
13 data-size={split.size || "normal"}
14 classList={{
15 ...(split.classList ?? {}),
16 [split.class ?? ""]: !!split.class,
17 }}
18 >
19 {split.children}
20 </span>
21 )
22}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected