Mixins / foldkit-mixins-ui

InlineAlert

interface · packages/mixins-ui/src/alert.ts:56

interface InlineAlert<Message> extends AlertContent<Message> {
  readonly layout: 'inline'
  readonly assertive?: boolean | undefined
}

A notice inside the content, of something that just happened: a live region. assertive interrupts (role="alert"); anything else reports (role="status"). Screen readers speak what changes in a live region, not what it held when the page loaded, so draw it when the thing happens.

Members

InlineAlert.layout

property · packages/mixins-ui/src/alert.ts:57

readonly layout: 'inline'

InlineAlert.assertive

property · packages/mixins-ui/src/alert.ts:58

readonly assertive?: boolean | undefined