mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 02:41:05 +00:00
32 lines
539 B
Svelte
32 lines
539 B
Svelte
<script>
|
|
/**
|
|
* Specify the `href` attribute
|
|
* @type {string} [href]
|
|
*/
|
|
export let href = undefined;
|
|
|
|
/**
|
|
* Specify the text
|
|
* @type {string} [text]
|
|
*/
|
|
export let text = undefined;
|
|
</script>
|
|
|
|
<li>
|
|
<a
|
|
role="menuitem"
|
|
tabindex="0"
|
|
href="{href}"
|
|
class:bx--header__menu-item="{true}"
|
|
{...$$restProps}
|
|
on:click
|
|
on:mouseover
|
|
on:mouseenter
|
|
on:mouseleave
|
|
on:keyup
|
|
on:keydown
|
|
on:focus
|
|
on:blur>
|
|
<span class:bx--text-truncate--end="{true}">{text}</span>
|
|
</a>
|
|
</li>
|