{ open: boolean; }
|
+| click | forwarded | -- |
+| mouseover | forwarded | -- |
+| mouseenter | forwarded | -- |
+| mouseleave | forwarded | -- |
+| submit | dispatched | -- |
+| close | dispatched | -- |
+| open | dispatched | -- |
## `Content`
@@ -916,6 +916,8 @@ None.
| hideLabel | let
| No | boolean
| false
| Set to `true` to visually hide the label text |
| invalid | let
| No | boolean
| false
| Set to `true` to indicate an invalid state |
| invalidText | let
| No | string
| ""
| Specify the invalid state text |
+| warn | let
| No | boolean
| false
| Set to `true` to indicate an warning state |
+| warnText | let
| No | string
| ""
| Specify the warning state text |
| name | let
| No | string
| -- | Set a name for the input element |
### Slots
@@ -988,6 +990,7 @@ export interface DropdownItem {
| warnText | let
| No | string
| ""
| Specify the warning state text |
| helperText | let
| No | string
| ""
| Specify the helper text |
| label | let
| No | string
| -- | Specify the list box label |
+| hideLabel | let
| No | boolean
| false
| Set to `true` to visually hide the label text |
| translateWithId | let
| No | (id: any) => string
| -- | Override the default translation ids |
| id | let
| No | string
| "ccs-" + Math.random().toString(36)
| Set an id for the list box component |
| name | let
| No | string
| -- | Specify a name attribute for the list box |
@@ -2040,17 +2043,18 @@ None.
### Events
-| Event name | Type | Detail |
-| :---------------------- | :--------- | :----- |
-| keydown | forwarded | -- |
-| click | forwarded | -- |
-| mouseover | forwarded | -- |
-| mouseenter | forwarded | -- |
-| mouseleave | forwarded | -- |
-| submit | dispatched | -- |
-| click:button--secondary | dispatched | -- |
-| close | dispatched | -- |
-| open | dispatched | -- |
+| Event name | Type | Detail |
+| :---------------------- | :--------- | :------------------------------ |
+| transitionend | dispatched | { open: boolean; }
|
+| keydown | forwarded | -- |
+| click | forwarded | -- |
+| mouseover | forwarded | -- |
+| mouseenter | forwarded | -- |
+| mouseleave | forwarded | -- |
+| submit | dispatched | -- |
+| click:button--secondary | dispatched | -- |
+| close | dispatched | -- |
+| open | dispatched | -- |
## `ModalBody`
@@ -3401,6 +3405,7 @@ None.
| Event name | Type | Detail |
| :--------- | :-------- | :----- |
+| click | forwarded | -- |
| mouseover | forwarded | -- |
| mouseenter | forwarded | -- |
| mouseleave | forwarded | -- |
@@ -3624,6 +3629,7 @@ None.
| Prop name | Kind | Reactive | Type | Default value | Description |
| :-------- | :--------------- | :------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------ | ------------------------------------------------------ |
| type | let
| No | "red" | "magenta" | "purple" | "blue" | "cyan" | "teal" | "green" | "gray" | "cool-gray" | "warm-gray" | "high-contrast"
| -- | Specify the type of tag |
+| size | let
| No | "sm" | "default"
| "default"
| -- |
| filter | let
| No | boolean
| false
| Set to `true` to use filterable variant |
| disabled | let
| No | boolean
| false
| Set to `true` to disable a filterable tag |
| skeleton | let
| No | boolean
| false
| Set to `true` to display the skeleton state |
@@ -3639,18 +3645,21 @@ None.
### Events
-| Event name | Type | Detail |
-| :--------- | :-------- | :----- |
-| click | forwarded | -- |
-| mouseover | forwarded | -- |
-| mouseenter | forwarded | -- |
-| mouseleave | forwarded | -- |
+| Event name | Type | Detail |
+| :--------- | :--------- | :----- |
+| click | forwarded | -- |
+| mouseover | forwarded | -- |
+| mouseenter | forwarded | -- |
+| mouseleave | forwarded | -- |
+| close | dispatched | -- |
## `TagSkeleton`
### Props
-None.
+| Prop name | Kind | Reactive | Type | Default value | Description |
+| :-------- | :--------------- | :------- | :--------------------------------- | ---------------------- | ----------- |
+| size | let
| No | "sm" | "default"
| "default"
| -- |
### Slots
@@ -3957,16 +3966,17 @@ None.
### Events
-| Event name | Type | Detail |
-| :--------- | :-------- | :----- |
-| click | forwarded | -- |
-| mouseover | forwarded | -- |
-| mouseenter | forwarded | -- |
-| mouseleave | forwarded | -- |
-| change | forwarded | -- |
-| keyup | forwarded | -- |
-| focus | forwarded | -- |
-| blur | forwarded | -- |
+| Event name | Type | Detail |
+| :--------- | :--------- | :--------------------------------- |
+| toggle | dispatched | { toggled: boolean; }
|
+| click | forwarded | -- |
+| mouseover | forwarded | -- |
+| mouseenter | forwarded | -- |
+| mouseleave | forwarded | -- |
+| change | forwarded | -- |
+| keyup | forwarded | -- |
+| focus | forwarded | -- |
+| blur | forwarded | -- |
## `ToggleSkeleton`
@@ -4141,6 +4151,7 @@ None.
| expanded | let
| Yes | boolean
| false
| Set to `true` to expand the search bar |
| value | let
| Yes | number | string
| ""
| Specify the value of the search input |
| persistent | let
| No | boolean
| false
| Set to `true` to keep the search bar expanded |
+| disabled | let
| No | boolean
| false
| Set to `true` to disable the search bar |
| tabindex | let
| No | string
| "0"
| Specify the tabindex |
### Slots
@@ -4225,19 +4236,20 @@ None.
### Props
-| Prop name | Kind | Reactive | Type | Default value | Description |
-| :---------- | :--------------- | :------- | :-------------------------------------------------------------- | ------------------------------------------------ | ----------------------------------------------------- |
-| ref | let
| Yes | null | HTMLButtonElement
| null
| Obtain a reference to the button HTML element |
-| tooltipText | let
| No | string
| ""
| Specify the tooltip text |
-| align | let
| No | "start" | "center" | "end"
| "center"
| Set the alignment of the tooltip relative to the icon |
-| direction | let
| No | "top" | "right" | "bottom" | "left"
| "bottom"
| Set the direction of the tooltip relative to the icon |
-| id | let
| No | string
| "ccs-" + Math.random().toString(36)
| Set an id for the span element |
+| Prop name | Kind | Reactive | Type | Default value | Description |
+| :---------- | :--------------- | :------- | :-------------------------------------------------------------- | ------------------------------------------------ | ------------------------------------------------------------------------ |
+| ref | let
| Yes | null | HTMLButtonElement
| null
| Obtain a reference to the button HTML element |
+| tooltipText | let
| No | string
| ""
| Specify the tooltip text.let
| No | "start" | "center" | "end"
| "center"
| Set the alignment of the tooltip relative to the icon |
+| direction | let
| No | "top" | "right" | "bottom" | "left"
| "bottom"
| Set the direction of the tooltip relative to the icon |
+| id | let
| No | string
| "ccs-" + Math.random().toString(36)
| Set an id for the span element |
### Slots
-| Slot name | Default | Props | Fallback |
-| :-------- | :------ | :---- | :------- |
-| -- | Yes | -- | -- |
+| Slot name | Default | Props | Fallback |
+| :---------- | :------ | :---- | :------------------------- |
+| -- | Yes | -- | -- |
+| tooltipText | No | -- | {tooltipText}
|
### Events
diff --git a/docs/package.json b/docs/package.json
index 6280de78..6d5fbdf4 100644
--- a/docs/package.json
+++ b/docs/package.json
@@ -9,10 +9,9 @@
"build:svite": "svite build"
},
"devDependencies": {
- "@carbon/themes": "10.26.0",
"@sveltech/routify": "^1.9.9",
"autoprefixer": "^10.2.3",
- "carbon-components": "10.27.0",
+ "carbon-components": "10.28.0",
"carbon-components-svelte": "../",
"clipboard-copy": "^3.1.0",
"mdsvex": "^0.8.8",
diff --git a/docs/src/App.svelte b/docs/src/App.svelte
index 32b6194b..235e35fc 100644
--- a/docs/src/App.svelte
+++ b/docs/src/App.svelte
@@ -6,29 +6,12 @@
{label} -
+ {/if} {#if title} -{title} -
+ {/if}