Buckets:
| import { type ComponentProps, splitProps } from "solid-js" | |
| import "./badge-v2.css" | |
| export interface TagProps extends ComponentProps<"span"> {} | |
| export function Tag(props: TagProps) { | |
| const [split, rest] = splitProps(props, ["class", "classList", "children"]) | |
| return ( | |
| <span | |
| {...rest} | |
| data-component="tag" | |
| classList={{ | |
| ...split.classList, | |
| [split.class ?? ""]: !!split.class, | |
| }} | |
| > | |
| {split.children} | |
| </span> | |
| ) | |
| } | |
Xet Storage Details
- Size:
- 473 Bytes
- Xet hash:
- 0dd387f7ddafc4bd923b0e97c5c3c52cf1b0507ed8777ca7dbf7e57ecb65fa2f
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.