Inline Message
Show contextual feedback near an input or action element.
Usage guide
#Show input errors or help near the related element. Use Banner for broad notices and Toast for brief completion feedback.
Place inside the target element
Place it inside the parent that acts as the trigger. The message is portaled into the body, but its position follows that parent.
Connect content and actions
Set the content with
messageand offer a follow-up action throughbtnLabelor theactionslot.Choose when to show it
Manage visibility through clicks, focus departure, or
show()andhide(). Clicking outside closes it.
Examples
#Feature examples
#Choose a feature from 12 topics. Explore property settings, method calls, event results, and slot layouts through live examples and code.
No matching features.
API reference
#Hover over a name or focus it with the keyboard to see the code. On touch screens, tap the name.
<sy-inline-message>
Properties
| Attribute / Property | Type | Default | Description |
|---|---|---|---|
'informational' | 'info' | 'success' | 'warning' | 'error' | 'informational' | Component display style. | |
string | 'Inline message' | Help text about the input state. | |
boolean | true | Show the status icon. | |
boolean | undefined | Show the status icon. | |
boolean | false | Show an action button in the message. | |
boolean | false | Show the contextual help popup. | |
'click' | 'focusout' | 'click' | click toggles it when the parent is clicked. focusout shows it when focus leaves the parent. | |
string | '' | Action button text. | |
'top' | 'bottom' | 'left' | 'right' | 'bottom' | Preferred popup position relative to the trigger. | |
'top' | 'bottom' | 'left' | 'right' | undefined | Item layout direction. | |
boolean | false | Keep the popup visible when the parent scrolls out of view. | |
| 'none'
| 'fade' | 'fade-scale' | 'zoom' | 'pop'
| 'slide-top' | 'slide-bottom' | 'slide-left' | 'slide-right'
| 'slide-fade-top' | 'slide-fade-bottom' | 'slide-fade-left' | 'slide-fade-right'
| 'reveal-top' | 'reveal-bottom' | 'reveal-left' | 'reveal-right'
| 'flip-x' | 'flip-y' | 'bounce' | 'spin' | 'none' | Enter/exit animation type. `none` (default) toggles instantly. | |
'x-fast' | 'fast' | 'medium' | 'slow' | 'x-slow' | 'fast' | Animation playback speed token. Maps to `--transition-*` global tokens. |
Events
| Event | Detail | Description |
|---|---|---|
CustomEvent<MouseEvent> | Read the result from the event's detail. | |
CustomEvent<MouseEvent> | Read the result from the event's detail. | |
CustomEvent<void> | Read the result from the event's detail. |
Methods
| Method | Returns | Description |
|---|---|---|
Promise<void> | Show the notification. | |
Promise<void> | Hide the currently displayed notification. |
Slots
| Slot | Description |
|---|---|
| Content displayed in the action area. |