BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/stackzero/price-format-basic

price-format-basic

stackzero/price-format-basic
FreeComponent

stackzero publishes no description for this item.

Install it

npx shadcn@latest add https://ui.stackzero.co/r/price-format-basic.json

Source

/components/commerce-ui/components/price-format/basic/price-format-basic.tsxui.stackzero.co/r/price-format-basic.json
1"use client";
2
3import { cn } from "@/lib/utils";
4import { NumericFormat } from "react-number-format";
5
6interface PriceFormat_BasicProps extends React.HTMLAttributes<HTMLDivElement> {
7 value: number;
8 prefix?: string;
9 thousandSeparator?: string;
10 decimalSeparator?: string;
11 decimalScale?: number;
12}
13
14const PriceFormat_Basic: React.FC<PriceFormat_BasicProps> = ({
15 className,
16 decimalScale = 2,
17 decimalSeparator = ",",
18 prefix = "$",
19 thousandSeparator = ".",
20 value,
21}) => {
22 return (
23 <NumericFormat
24 value={value}
25 thousandSeparator={thousandSeparator}
26 decimalSeparator={decimalSeparator}
27 decimalScale={decimalScale}
28 prefix={prefix}
29 displayType="text"
30 className={cn("text-lg font-medium", className)}
31 />
32 );
33};
34
35export default PriceFormat_Basic;

What it pulls in

npm packages

  • lucide-react
  • react-number-format

Other registry items

  • button

Files it writes

  • @/components/commerce-ui/components/price-format/basic/price-format-basic.tsx

Facts

Registry
stackzero
Type
registry:component
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-02
Last confirmed
yesterday

Go to the source

ui.stackzero.co stackzero-labs/ui on GitHub Raw registry item This item as JSON

More from stackzero

All 112 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
face-rating-basicface-rating-basicstackzeroComponentsFree1 dep
face-rating-gradientface-rating-gradientstackzeroComponentsFree2 deps
image-carousel-basicimage-carousel-basicstackzeroComponentsFree5 deps
image-viewer-basicimage-viewer-basicstackzeroComponentsFree3 deps
image-viewer-basic-ex-01image-viewer-basic-ex-01stackzeroComponentsFree1 dep
image-viewer-basic-ex-02image-viewer-basic-ex-02stackzeroComponentsFree1 dep
image-viewer-motionimage-viewer-motionstackzeroComponentsFree4 deps
image-viewer-motion-ex-01image-viewer-motion-ex-01stackzeroComponentsFree1 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