Skip to main content

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.

Alert

Alert renders a bordered status message. It can be a leaf component or a container with child nodes.
ui.alert({
  title = 'Interactive State',
  description = 'Change values here and the preview updates.',
  iconComponent = 'lucide:info'
})
ui.alert({
  title = 'Warning',
  variant = 'destructive'
}, function()
  ui.text('This action cannot be undone.')
end)

API

ui.alert(props, children?)

Props

PropTypeDescription
titlestringOptional heading.
descriptionstringOptional description text.
variant'default' | 'destructive'Destructive switches to red border/text styling.
icon, iconComponenticonOptional leading icon.
innerClassNamestringInner wrapper class.
bodyClassName, contentClassNamestringBody/content wrapper class.
titleClassNamestringTitle class.
descriptionClassNamestringDescription class.
className, stylemixedCommon LUI styling props.