Documentation Index
Fetch the complete documentation index at: https://docs.sure-developer.com/llms.txt
Use this file to discover all available pages before exploring further.
Button
Button renders an action button and routes clicks back to Lua through the registered callback.
API
Props
| Prop | Type | Description |
|---|---|---|
label | string | reactive getter | Button text. Passed as the first argument. |
onPress | function(payload) | Lua callback called when the button is clicked. |
variant | 'primary' | 'ghost' | Visual style. Defaults to primary. |
icon, iconComponent, startIcon, startIconComponent | icon | Leading icon. |
endIcon, endIconComponent | icon | Trailing icon. |
iconPosition | 'start' | 'end' | Moves the primary icon to the end when set to end. |
labelClassName | string | Extra class for the label span. |
iconClassName, startIconClassName, endIconClassName | string | Extra icon slot classes. |
className, style | mixed | Common LUI styling props. |
Icon formats
motionButton uses the MotionNode renderer but keeps the same label, onPress, and icon conventions.