Button
A button whose arrow leans in on hover and whose pill dips on press. Set loading and it folds into a spinner.
- 1.8 KB .bexode
- 4 live inputs
- Responsive fit Layout
Use it
The code follows your customizations. Install with npm i exodeui.
import { ExodeUICanvas } from 'exodeui';
// button.bexode goes in /public (download it below)
export function Button() {
return (
<ExodeUICanvas
src="/button.bexode"
fit="Contain"
autoPlay
interactive
onTrigger={(name) => {
// fires: 'press'
}}
style={{ width: '100%', height: 560 }}
/>
);
}Inputs
| Input | Type | Default | Range |
|---|---|---|---|
accent | Text | #FF5A1F | hex colour |
onAccent | Text | #FFFFFF | hex colour |
labelText | Text | Continue | — |
loading | Boolean | false | — |
Events (via onTrigger): press