A flyout displays content in an overlay, triggered by a button.
Demo
Anatomy
Directives
x-flyout
Required
The root element for the flyout.
Modifier | Description |
---|
.hoverable | Opens flyout on hover. Flyout automatically closes when cursor moves outside. |
Event | Description | detail |
---|
flyout:change | Whether the flyout is open or closed. | { open: boolean } |
Data Attribute | Values |
---|
[data-state] | open | closed |
x-flyout:trigger
Required
Trigger button that opens or closes the flyout content.
Event | Description | detail |
---|
flyout:change | Whether the flyout is open or closed. | { open: boolean } |
Data Attribute | Values |
---|
[data-state] | open | closed |
x-flyout:content
Required
The content that will be shown or hidden.
Event | Description | detail |
---|
flyout:change | Whether the flyout is open or closed. | { open: boolean } |
Data Attribute | Values |
---|
[data-state] | open | closed |