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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user