Skip to main content

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
Live runtime

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

InputTypeDefaultRange
accentText#FF5A1Fhex colour
surfaceText#FFFFFFhex colour
inkText#17171Chex colour
selectedNumber00 – 3

Events (via onTrigger): selected