mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
chore: add more prop annotations
This commit is contained in:
parent
8c1ffd4cb0
commit
773b18d314
75 changed files with 877 additions and 137 deletions
|
@ -6,6 +6,11 @@
|
|||
export let primaryFocus = false;
|
||||
export let requireTitle = true;
|
||||
export let text = "Provide text";
|
||||
|
||||
/**
|
||||
* Set an id for the top-level element
|
||||
* @type {string} [id]
|
||||
*/
|
||||
export let id = "ccs-" + Math.random().toString(36);
|
||||
export let ref = null;
|
||||
|
||||
|
@ -27,12 +32,13 @@
|
|||
title: requireTitle ? text : undefined,
|
||||
class: "bx--overflow-menu-options__btn",
|
||||
disabled: href ? undefined : disabled,
|
||||
href: href ? href : undefined
|
||||
href: href ? href : undefined,
|
||||
};
|
||||
</script>
|
||||
|
||||
<li
|
||||
role="menuitem"
|
||||
{id}
|
||||
class:bx--overflow-menu-options__option={true}
|
||||
class:bx--overflow-menu--divider={hasDivider}
|
||||
class:bx--overflow-menu-options__option--danger={danger}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue