ChainRow
A component for displaying chain information in a row layout with icon and name.
ChainRow
The ChainRow component displays chain information in a horizontal layout, combining a chain icon with its name.
Usage
Props
Prop | Type | Default | Description |
---|---|---|---|
chain_id | number | - | Chain ID |
name | string | - | Chain name |
className | string | - | Additional CSS classes |
Features
- Combines ChainIcon with chain name
- Horizontal layout with proper spacing
- Flexible styling through className
- Simple and lightweight implementation
- Consistent alignment and spacing
Examples
Basic Chain Display
In a List
Interactive Row
With Custom Styling
Layout Structure
The component uses a flex layout with:
- ChainIcon on the left
- Chain name on the right
- Gap between icon and name
- Center alignment of items
Edit on GitHub
Last updated on