Demos
For examples and details on the usage of this component, visit the component demo page:
Dropdown
Properties
| Parameter | Type | Description | Default |
|---|---|---|---|
| Classes | DropdownItemSlots |
Gets or sets the CSS class names for the dropdown item slots. | - |
| ChildContent | RenderFragment |
Gets or sets the content to render inside the menu item. | - |
| StartContent | RenderFragment |
Gets or sets the content to render at the start of the menu item. | - |
| EndContent | RenderFragment |
Gets or sets the content to render at the end of the menu item. | - |
| Id | string |
Gets or sets the unique identifier for the menu item. | - |
| Description | string |
Gets or sets the description of the menu item. | - |
| Variant | MenuVariant |
Gets or sets the visual variant of the menu item. | Solid |
| Color | ThemeColor |
Gets or sets the theme color of the menu item. | Default |
| ShowDivider | bool |
Gets or sets a value indicating whether a divider should be displayed after the menu item. | false |
| ReadOnly | bool |
Gets or sets a value indicating whether the menu item is read-only. | false |
| Disabled | bool |
Gets or sets a value indicating whether the menu item is disabled. | false |
| OnClick | EventCallback<MouseEventArgs> |
Gets or sets the callback invoked when the menu item is clicked. | - |
| As | string |
Gets or sets an HTML tag of the component. | - |
| Class | string |
Gets or sets CSS class names that will be applied to the component. | - |
| Style | string |
Gets or sets styles that will be applied to the component. | - |
| AdditionalAttributes | IReadOnlyDictionary<string, object> |
Gets or sets a collection of additional attributes that will be applied to the component. | - |
| ElementReference | ElementReference? |
Gets or sets the associated . May be if accessed before the component is rendered. | - |