diff --git a/packages/webawesome/docs/docs/components/menu-item.md b/packages/webawesome/docs/docs/components/menu-item.md deleted file mode 100644 index 889862036..000000000 --- a/packages/webawesome/docs/docs/components/menu-item.md +++ /dev/null @@ -1,125 +0,0 @@ ---- -title: Menu Item -description: Menu items provide options for the user to pick from in a menu. -tags: component -parent: menu -icon: menu ---- - -```html {.example} - - Option 1 - Option 2 - Option 3 - - Checkbox - Disabled - - - Prefix Icon - - - - Suffix Icon - - - -``` - -## Examples - -### Prefix & Suffix - -Add content to the start and end of menu items using the `prefix` and `suffix` slots. - -```html {.example} - - - - Home - - - - - Messages - 12 - - - - - - - Settings - - -``` - -### Disabled - -Add the `disabled` attribute to disable the menu item so it cannot be selected. - -```html {.example} - - Option 1 - Option 2 - Option 3 - -``` - -### Loading - -Use the `loading` attribute to indicate that a menu item is busy. Like a disabled menu item, clicks will be suppressed until the loading state is removed. - -```html {.example} - - Option 1 - Option 2 - Option 3 - -``` - -### Checkbox Menu Items - -Set the `type` attribute to `checkbox` to create a menu item that will toggle on and off when selected. You can use the `checked` attribute to set the initial state. - -Checkbox menu items are visually indistinguishable from regular menu items. Their ability to be toggled is primarily inferred from context, much like you'd find in the menu of a native app. - -```html {.example} - - Autosave - Check Spelling - Word Wrap - -``` - -### Value & Selection - -The `value` attribute can be used to assign a hidden value, such as a unique identifier, to a menu item. When an item is selected, the `wa-select` event will be emitted and a reference to the item will be available at `event.detail.item`. You can use this reference to access the selected item's value, its checked state, and more. - -```html {.example} - - Option 1 - Option 2 - Option 3 - - Checkbox 4 - Checkbox 5 - Checkbox 6 - - - -``` - diff --git a/packages/webawesome/docs/docs/components/menu-label.md b/packages/webawesome/docs/docs/components/menu-label.md deleted file mode 100644 index b4d1de9db..000000000 --- a/packages/webawesome/docs/docs/components/menu-label.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -title: Menu Label -description: Menu labels are used to describe a group of menu items. -tags: component -parent: menu -icon: menu ---- - -```html {.example} - - Fruits - Apple - Banana - Orange - - Vegetables - Broccoli - Carrot - Zucchini - -``` diff --git a/packages/webawesome/docs/docs/components/menu.md b/packages/webawesome/docs/docs/components/menu.md deleted file mode 100644 index e66b68a02..000000000 --- a/packages/webawesome/docs/docs/components/menu.md +++ /dev/null @@ -1,77 +0,0 @@ ---- -title: Menu -description: Menus provide a list of options for the user to choose from. -tags: [actions, apps] -icon: menu ---- - -You can use [menu items](/docs/components/menu-item), [menu labels](/docs/components/menu-label), and [dividers](/docs/components/divider) to compose a menu. Menus support keyboard interactions, including type-to-select an option. - -```html {.example} - - Undo - Redo - - Cut - Copy - Paste - Delete - -``` - -:::info -Menus are intended for system menus (dropdown menus, select menus, context menus, etc.). They should not be mistaken for navigation menus which serve a different purpose and have a different semantic meaning. If you're building navigation, use `