1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-21 18:53:29 +00:00

[CL-221] Add chip-select component (#9021)

---------

Co-authored-by: William Martin <contact@willmartian.com>
This commit is contained in:
Victoria League
2024-05-23 16:30:55 -04:00
committed by GitHub
parent bbf1473022
commit 08a6f91411
16 changed files with 732 additions and 26 deletions

View File

@@ -10,7 +10,26 @@ Menus are used to help organize related options. Menus are most often used for i
tables.
<Story of={stories.ClosedMenu} />
<Controls />
<br />
## Slots
`bitMenuItem` supports the following slots:
| Slot | Description |
| -------------- | --------------------------------------------------- |
| default | primary text or arbitrary content |
| `slot="start"` | commonly an icon or avatar; before the default slot |
| `slot="end"` | commonly an icon; after the default slot |
```html
<button type="button" bitMenuItem>
<i class="bwi bwi-key" slot="start"></i>
Menu item with icons
<i class="bwi bwi-angle-right" slot="end"></i>
</button>
```
## Accessibility