Tab Bar
A floating tab bar. A tinted pill stretches across to the tab you pick and its icon lifts into place.
- 2.3 KB .bexode
- 4 live inputs
- Responsive fit Layout
Use it
The code follows your customizations. Install with npm i exodeui.
import { ExodeUICanvas } from 'exodeui';
// tab-bar.bexode goes in /public (download it below)
export function TabBar() {
return (
<ExodeUICanvas
src="/tab-bar.bexode"
fit="Contain"
autoPlay
interactive
onTrigger={(name) => {
// fires: 'selected'
}}
style={{ width: '100%', height: 560 }}
/>
);
}Inputs
| Input | Type | Default | Range |
|---|---|---|---|
accent | Text | #FF5A1F | hex colour |
surface | Text | #FFFFFF | hex colour |
ink | Text | #17171C | hex colour |
selected | Number | 0 | 0 – 3 |
Events (via onTrigger): selected