Skip to content
X GitHub

Price

/ $ /month
---
import { Price, PriceValue, PriceUnit } from "@/components/ui/price"
---
<Price>
<PriceUnit>$</PriceUnit>
<PriceValue>99</PriceValue>
<span class="text-sm text-muted-foreground">/month</span>
</Price>

To install the price component, run the following command:

Terminal window
pnpm dlx shadcn@latest add @fulldev-ui/price
import { Price, PriceValue, PriceUnit } from "@/components/ui/price"
<Price>
<PriceUnit>$</PriceUnit>
<PriceValue>99</PriceValue>
<span>/month</span>
</Price>
/ $ /month
---
import { Price, PriceValue, PriceUnit } from "@/components/ui/price"
---
<Price>
<PriceUnit>$</PriceUnit>
<PriceValue>29</PriceValue>
<span class="text-sm text-muted-foreground">/month</span>
</Price>
/ JPY /year
---
import { Price, PriceValue, PriceUnit } from "@/components/ui/price"
---
<Price>
<PriceValue>9,999</PriceValue>
<PriceUnit>JPY</PriceUnit>
<span class="text-sm text-muted-foreground">/year</span>
</Price>