Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Clickable LUI action button with Lua event callbacks and icons
Button
lui.page('actions', function(ui) ui.button('Save', function(payload) print('saved from LUI') end, { iconComponent = 'lucide:save', variant = 'primary' }) end)
ui.button(label, onPress, props?)
lui.button(label, onPress, props?)
label
string | reactive getter
onPress
function(payload)
variant
'primary' | 'ghost'
primary
icon
iconComponent
startIcon
startIconComponent
endIcon
endIconComponent
iconPosition
'start' | 'end'
end
labelClassName
string
iconClassName
startIconClassName
endIconClassName
className
style
ui.button('Close', onClose, { endIcon = '->' }) ui.button('Save', onSave, { icon = { name = 'lucide:save', width = 16 } })
motionButton
Was this page helpful?