MCPcopy Create free account
hub / github.com/kobaltedev/kobalte / CustomValueLabelExample

Function CustomValueLabelExample

apps/docs/src/examples/progress.tsx:37–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35}
36
37export function CustomValueLabelExample() {
38 return (
39 <Progress
40 value={3}
41 minValue={0}
42 maxValue={10}
43 getValueLabel={({ value, max }) => `${value} of ${max} tasks completed`}
44 class={style.progress}
45 >
46 <div class={style["progress__label-container"]}>
47 <Progress.Label class={style.progress__label}>
48 Processing...
49 </Progress.Label>
50 <Progress.ValueLabel class={style["progress__value-label"]} />
51 </div>
52 <Progress.Track class={style.progress__track}>
53 <Progress.Fill class={style.progress__fill} />
54 </Progress.Track>
55 </Progress>
56 );
57}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected