BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/blode/ui/meter

Meter

blode-ui/meter
FreeComponent

A meter that shows a scalar value within a bounded range.

Install it

npx shadcn@latest add https://raw.githubusercontent.com/mblode/blode-ui/main/public/r/meter.json

Source

ui/meter.tsxraw.githubusercontent.com/mblode/blode-ui/main/public/r/meter.json
1"use client";
2
3import { Meter as MeterPrimitive } from "@base-ui/react/meter";
4import type * as React from "react";
5
6import { cn } from "@/lib/utils";
7
8const Meter = ({ className, ...props }: React.ComponentProps<typeof MeterPrimitive.Root>) => (
9 <MeterPrimitive.Root
10 className={cn("flex w-full flex-col gap-2", className)}
11 data-slot="meter"
12 {...props}
13 />
14);
15
16const MeterLabel = ({ className, ...props }: React.ComponentProps<typeof MeterPrimitive.Label>) => (
17 <MeterPrimitive.Label
18 className={cn("font-medium text-sm leading-none", className)}
19 data-slot="meter-label"
20 {...props}
21 />
22);
23
24const MeterValue = ({ className, ...props }: React.ComponentProps<typeof MeterPrimitive.Value>) => (
25 <MeterPrimitive.Value
26 className={cn("text-muted-foreground text-sm tabular-nums", className)}
27 data-slot="meter-value"
28 {...props}
29 />
30);
31
32const MeterTrack = ({ className, ...props }: React.ComponentProps<typeof MeterPrimitive.Track>) => (
33 <MeterPrimitive.Track
34 className={cn("h-2 w-full overflow-hidden rounded-full bg-primary/20", className)}
35 data-slot="meter-track"
36 {...props}
37 />
38);
39
40const MeterIndicator = ({
41 className,
42 ...props
43}: React.ComponentProps<typeof MeterPrimitive.Indicator>) => (
44 <MeterPrimitive.Indicator
45 className={cn("h-full bg-primary transition-[width]", className)}
46 data-slot="meter-indicator"
47 {...props}
48 />
49);
50
51export { Meter, MeterIndicator, MeterLabel, MeterTrack, MeterValue };

What it pulls in

npm packages

  • @base-ui/react

Files it writes

  • registry/default/ui/meter.tsx

Facts

Registry
blode/ui
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-04
Last confirmed
today

Go to the source

blode.co mblode/blode-ui on GitHub Raw registry item This item as JSON

More from blode/ui

All 85 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Accordionaccordionblode/uiComponentsFree2 deps
Alertalertblode/uiComponentsFreeno deps
Alert Dialogalert-dialogblode/uiComponentsFree1 dep
Ask User Questionsask-user-questionsblode/uiComponentsFree1 dep
Aspect Ratioaspect-ratioblode/uiComponentsFree1 dep
Attachmentattachmentblode/uiComponentsFree1 dep
Autocompleteautocompleteblode/uiComponentsFree1 dep
Avataravatarblode/uiComponentsFree1 dep
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex