Tooltip

Delete this record?

Delete record
Attribute Type Documentation Default Value
id :any

HTML id used as the tooltip id prefix

Required content * :string

tooltip text content

position :string

tooltip position relative to trigger

"top"
color :string

tooltip color variant

"primary"
open :boolean

optional server-controlled visibility; omit for browser-owned interest state

class :any

additional CSS classes on the tooltip surface

rest :global
Required inner_block * :slot

element the tooltip is attached to

<.dm_btn id="tooltip-confirm-delete" variant="error" {trigger_attrs}
  aria-label="Delete record" confirm="Delete this record?">
  Delete
</.dm_btn>