SolanaUI

PriceChart

The PriceChart component is a chart that displays the price of a token over time.

Loading...

Loading...

Installation

1. Install shadcn/ui card, chart, toggle group, and skeleton components

Use shadcn/ui CLI or manually install the card and chart,toggle group, and skeleton components.

2. Install SolanaUI TokenIcon

The PriceChart component requires the TokenIcon component. Copy the code below to src/components/sol/token-icon.tsx.

3. Install SolanaUI PriceChart

Copy the code below to src/components/sol/price-chart.tsx.

4. Use PriceChart

Import the PriceChart component and use it in your app.