Headless component system for displaying Reward information
Reward Kit is still in early alpha, and may contain bugs or unexpected behavior.
The Boost V2 Docs are under active development and will be subject to changes.
A headless compound component system for displaying reward-related information including amounts, USD values, and token images. The system uses a context-based approach to share reward data between components.
The container component that provides reward data context to child components.
Component that displays the reward amount with optional formatting.
Component that displays the USD value of rewards.
Component that displays the reward token’s image.
Here’s a simple example showing all components together:
Example using render props for custom displays:
Example showing fallback handling:
The full query result containing boost data and status
The Reward components use React Context internally to share data and must be used within a Reward.Root
component. The system automatically handles loading states, error cases, and data formatting.
Each component can be used independently or together, allowing for flexible layouts and custom rendering through render props.
Headless component system for displaying Reward information
Reward Kit is still in early alpha, and may contain bugs or unexpected behavior.
The Boost V2 Docs are under active development and will be subject to changes.
A headless compound component system for displaying reward-related information including amounts, USD values, and token images. The system uses a context-based approach to share reward data between components.
The container component that provides reward data context to child components.
Component that displays the reward amount with optional formatting.
Component that displays the USD value of rewards.
Component that displays the reward token’s image.
Here’s a simple example showing all components together:
Example using render props for custom displays:
Example showing fallback handling:
The full query result containing boost data and status
The Reward components use React Context internally to share data and must be used within a Reward.Root
component. The system automatically handles loading states, error cases, and data formatting.
Each component can be used independently or together, allowing for flexible layouts and custom rendering through render props.