mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
30 lines
691 B
Svelte
30 lines
691 B
Svelte
<script lang="ts">
|
|
import { OverflowMenu, OverflowMenuItem } from "carbon-components-svelte";
|
|
</script>
|
|
|
|
<OverflowMenu
|
|
on:close={(e) => {
|
|
console.log("close", e.detail); // { index: number; text: string; }
|
|
}}
|
|
>
|
|
<OverflowMenuItem
|
|
text="Manage credentials"
|
|
on:click={() => {
|
|
console.log("click", "Manage credentials");
|
|
}}
|
|
/>
|
|
<OverflowMenuItem
|
|
href="https://cloud.ibm.com/docs/api-gateway/"
|
|
text="API documentation"
|
|
on:click={() => {
|
|
console.log("click", "API documentation");
|
|
}}
|
|
/>
|
|
<OverflowMenuItem
|
|
danger
|
|
text="Delete service"
|
|
on:click={() => {
|
|
console.log("click", "Delete service");
|
|
}}
|
|
/>
|
|
</OverflowMenu>
|