1 viewer
Component · Visualization
Candle
cre8.primitive.candleOHLCV candle chart with a volume band; bars carry open/high/low/close/volume per period.
- Category
- Visualization
- Slots
- 1
- States
- 0
- Writer
- Shared
Preview
<PriceChart
asset="C8/USD"
bars={[
{ close: 44.2, high: 44.5, low: 41.8, open: 42.1, time: 1726700000, volume: 1200 },
{ close: 45.8, high: 46.0, low: 43.9, open: 44.2, time: 1726703600, volume: 2400 },
{ close: 43.5, high: 45.9, low: 43.1, open: 45.8, time: 1726707200, volume: 1800 },
{ close: 46.9, high: 47.2, low: 43.2, open: 43.5, time: 1726710800, volume: 3100 },
{ close: 48.7, high: 49.0, low: 46.5, open: 46.9, time: 1726714400, volume: 4200 }
]}
height={280}
resolution="1h"
/>Change this declaration and watch it render:open Candle in the playground
Variants
Anatomy
The named parts of the rendered markup. Recipes style these hooks, and every renderer keeps them stable.
| Slot | DOM class |
|---|---|
| root | .cre8-candle-chart |
States and platforms
The states the contract publishes, the platforms it declares, and the style recipes that dress it.
States
Platforms
Recipes
Renderers
Every tag in the example above renders through a shared writer.
Declared adapters. A status is the manifest's declaration, not a measured parity result.
| Target | Renderer | Status |
|---|---|---|
| web | react | experimental |
Accessibility
Semantic structure must stay available without visual styling.
- Expose meaningful names for interactive controls.
- Keep keyboard and pointer behavior equivalent where the platform supports it.
- Publish state with native semantics and data attributes where the adapter supports them.