mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11: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
|
@ -3,7 +3,12 @@
|
|||
export let role = "combobox";
|
||||
export let tabindex = "-1";
|
||||
export const translationIds = { close: "close", open: "open" };
|
||||
export let translateWithId = id => defaultTranslations[id];
|
||||
export let translateWithId = (id) => defaultTranslations[id];
|
||||
|
||||
/**
|
||||
* Set an id for the top-level element
|
||||
* @type {string} [id]
|
||||
*/
|
||||
export let id = "ccs-" + Math.random().toString(36);
|
||||
export let ref = null;
|
||||
|
||||
|
@ -11,7 +16,7 @@
|
|||
|
||||
const defaultTranslations = {
|
||||
[translationIds.close]: "Close menu",
|
||||
[translationIds.open]: "Open menu"
|
||||
[translationIds.open]: "Open menu",
|
||||
};
|
||||
const ctx = getContext("MultiSelect");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue