mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 02:41:05 +00:00
docs: hide deprecated components, add "Disabled items" OverflowMenu example (#1167)
This commit is contained in:
parent
95a1dfa1af
commit
5bf16e42f7
16 changed files with 54 additions and 42 deletions
|
@ -81,4 +81,21 @@ By default, the first overflow menu item is focused when opening the dropdown.
|
|||
<OverflowMenuItem text="Manage credentials" />
|
||||
<OverflowMenuItem href="https://cloud.ibm.com/docs/api-gateway/" text="API documentation" />
|
||||
<OverflowMenuItem danger text="Delete service" />
|
||||
</OverflowMenu>
|
||||
|
||||
### Disabled items
|
||||
|
||||
Disable menu items by setting `disabled` to `true`.
|
||||
|
||||
<OverflowMenu>
|
||||
<OverflowMenuItem text="Create key" />
|
||||
<OverflowMenuItem text="Import key" />
|
||||
<OverflowMenuItem text="Revoke key" disabled />
|
||||
<OverflowMenuItem text="Duplicate key" disabled />
|
||||
<OverflowMenuItem
|
||||
hasDivider
|
||||
href="https://cloud.ibm.com/docs/api-gateway/"
|
||||
text="API documentation"
|
||||
/>
|
||||
<OverflowMenuItem hasDivider danger text="Delete service" />
|
||||
</OverflowMenu>
|
Loading…
Add table
Add a link
Reference in a new issue