Action Sheet
import { AXActionSheetModule } from '@acorex/components/action-sheet'; Overview
Usage
Preview
Code
List item
AXActionSheetItem.Preview
Code
Custom content
content value equal to a component or template refPreview
Code
List item and custom content together
items and use content mode in an action sheetPreview
Code
On close
Preview
Code
Draggable
Preview
Code
Design Tokens
| --ax-comp-action-sheet-bg-color | var(--ax-sys-color-lightest-surface) | Background color of the action sheet. |
| --ax-comp-action-sheet-text-color | var(--ax-sys-color-#{$name}-surface) | Text color within the action sheet. Uses a theme color. |
| --ax-comp-action-sheet-hover-bg-color | var(--ax-sys-color-surface) | Background color of the action sheet when hovered. |
| --ax-comp-action-sheet-border-radius-size | var(--ax-sys-border-radius) | Border radius of the action sheet. Uses the system's border radius. |
Methods
| open | config: AXActionSheetConfig | Specifies the function to be called to open the action sheet with the given configuration. |
Props
| title | string | Sample Title | Sets the title of the action sheet. |
| subtitle | string | The subtitle is placed here so that if you have an explanation about this action sheet, you can insert it | Provides a subtitle or description for the action sheet. |
| showHeader | boolean | true | Determines whether the header is displayed. |
| closeOnBackdrop | boolean | true | Specifies whether the action sheet should close when the backdrop is clicked. |
| showCloseButton | boolean | true | Determines whether a close button is displayed. |
| items | AXActionSheetItem[] | [] | Specifies the array of button items to be displayed in the action sheet. |
| content | TemplateRef | - | Defines the custom template content to be displayed in the action sheet. |