diff --git a/CHANGELOG.md b/CHANGELOG.md
index ecd78bda..b4bf1c5c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -310,7 +310,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- FluidForm: add `FluidForm` component and support fluid variants for `TextInput`, `PasswordInput` ([PR #293](https://github.com/IBM/carbon-components-svelte/pull/293), thanks [@josefaidt](https://github.com/josefaidt))
-- UI Shell: add `ref` prop to interactive (i.e. anchor links, buttons) UI Shell elements ([PR #297](https://github.com/IBM/carbon-components-svelte/pull/297), thanks [@josefaidt](https://github.com/josefaidt))
+- UI Shell: add `ref` prop to interactive (i.e., anchor links, buttons) UI Shell elements ([PR #297](https://github.com/IBM/carbon-components-svelte/pull/297), thanks [@josefaidt](https://github.com/josefaidt))
**Fixes**
@@ -474,7 +474,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [0.9.2](https://github.com/IBM/carbon-components-svelte/releases/tag/v0.9.2) - 2020-08-01
- add "skip-to-main-content" slot to `Header`
-- make `platformName` prop in UI Shell `Header` slottable (i.e. ...)
+- make `platformName` prop in UI Shell `Header` slottable (i.e., ...)
- make `company` prop `Header` optional
- fix UI Shell `Header` to add space between company and platform name for ARIA label
- fix UI Shell `HeaderAction` bug where panel would not open
diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md
index 6e91af6b..4a1ab68e 100644
--- a/COMPONENT_INDEX.md
+++ b/COMPONENT_INDEX.md
@@ -192,12 +192,12 @@
### Props
-| Prop name | Kind | Reactive | Type | Default value | Description |
-| :-------------- | :--------------- | :------- | :------------------- | ------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------- |
-| disabled | let
| Yes | boolean
| false
| Set to `true` to disable the accordion item |
-| open | let
| Yes | boolean
| false
| Set to `true` to open the first accordion item |
-| title | let
| No | string
| "title"
| Specify the title of the accordion item heading
Alternatively, use the named slot "title" (e.g. <div slot="title">...</div>) |
-| iconDescription | let
| No | string
| "Expand/Collapse"
| Specify the ARIA label for the accordion item chevron icon |
+| Prop name | Kind | Reactive | Type | Default value | Description |
+| :-------------- | :--------------- | :------- | :------------------- | ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------- |
+| disabled | let
| Yes | boolean
| false
| Set to `true` to disable the accordion item |
+| open | let
| Yes | boolean
| false
| Set to `true` to open the first accordion item |
+| title | let
| No | string
| "title"
| Specify the title of the accordion item heading
Alternatively, use the named slot "title" (e.g., <div slot="title">...</div>) |
+| iconDescription | let
| No | string
| "Expand/Collapse"
| Specify the ARIA label for the accordion item chevron icon |
### Slots
@@ -333,22 +333,22 @@ None.
### Props
-| Prop name | Kind | Reactive | Type | Default value | Description |
-| :--------------- | :--------------- | :------- | :---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| ref | let
| Yes | null | HTMLAnchorElement | HTMLButtonElement
| null
| Obtain a reference to the HTML element |
-| kind | let
| No | "primary" | "secondary" | "tertiary" | "ghost" | "danger" | "danger-tertiary" | "danger-ghost"
| "primary"
| Specify the kind of button |
-| size | let
| No | "default" | "field" | "small"
| "default"
| Specify the size of button |
-| hasIconOnly | let
| No | boolean
| false
| Set to `true` for the icon-only variant |
-| icon | let
| No | typeof import("carbon-icons-svelte").CarbonIcon
| -- | Specify the icon from `carbon-icons-svelte` to render |
-| iconDescription | let
| No | string
| -- | Specify the ARIA label for the button icon |
-| tooltipAlignment | let
| No | "start" | "center" | "end"
| -- | Set the alignment of the tooltip relative to the icon
`hasIconOnly` must be set to `true` |
-| tooltipPosition | let
| No | "top" | "right" | "bottom" | "left"
| -- | Set the position of the tooltip relative to the icon |
-| as | let
| No | boolean
| false
| Set to `true` to render a custom HTML element
Props are destructured as `props` in the default slot (e.g. <Button let:props><div {...props}>...</div></Button>) |
-| skeleton | let
| No | boolean
| false
| Set to `true` to display the skeleton state |
-| disabled | let
| No | boolean
| false
| Set to `true` to disable the button |
-| href | let
| No | string
| -- | Set the `href` to use an anchor link |
-| tabindex | let
| No | string
| "0"
| Specify the tabindex |
-| type | let
| No | string
| "button"
| Specify the `type` attribute for the button element |
+| Prop name | Kind | Reactive | Type | Default value | Description |
+| :--------------- | :--------------- | :------- | :---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| ref | let
| Yes | null | HTMLAnchorElement | HTMLButtonElement
| null
| Obtain a reference to the HTML element |
+| kind | let
| No | "primary" | "secondary" | "tertiary" | "ghost" | "danger" | "danger-tertiary" | "danger-ghost"
| "primary"
| Specify the kind of button |
+| size | let
| No | "default" | "field" | "small"
| "default"
| Specify the size of button |
+| hasIconOnly | let
| No | boolean
| false
| Set to `true` for the icon-only variant |
+| icon | let
| No | typeof import("carbon-icons-svelte").CarbonIcon
| -- | Specify the icon from `carbon-icons-svelte` to render |
+| iconDescription | let
| No | string
| -- | Specify the ARIA label for the button icon |
+| tooltipAlignment | let
| No | "start" | "center" | "end"
| -- | Set the alignment of the tooltip relative to the icon
`hasIconOnly` must be set to `true` |
+| tooltipPosition | let
| No | "top" | "right" | "bottom" | "left"
| -- | Set the position of the tooltip relative to the icon |
+| as | let
| No | boolean
| false
| Set to `true` to render a custom HTML element
Props are destructured as `props` in the default slot (e.g., <Button let:props><div {...props}>...</div></Button>) |
+| skeleton | let
| No | boolean
| false
| Set to `true` to display the skeleton state |
+| disabled | let
| No | boolean
| false
| Set to `true` to disable the button |
+| href | let
| No | string
| -- | Set the `href` to use an anchor link |
+| tabindex | let
| No | string
| "0"
| Specify the tabindex |
+| type | let
| No | string
| "button"
| Specify the `type` attribute for the button element |
### Slots
@@ -488,24 +488,24 @@ None.
### Props
-| Prop name | Kind | Reactive | Type | Default value | Description |
-| :-------------------- | :--------------- | :------- | :--------------------------------------------------- | ------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------- |
-| ref | let
| Yes | null | HTMLPreElement
| null
| Obtain a reference to the pre HTML element |
-| showMoreLess | let
| Yes | boolean
| false
| Set to `true` to enable the show more/less button |
-| expanded | let
| Yes | boolean
| false
| Set to `true` to expand a multi-line code snippet (type="multi") |
-| type | let
| No | "single" | "inline" | "multi"
| "single"
| Set the type of code snippet |
-| code | let
| No | string
| -- | Set the code snippet text
Alternatively, use the default slot (e.g. <CodeSnippet>{`code`}</CodeSnippet>) |
-| hideCopyButton | let
| No | boolean
| false
| Set to `true` to hide the copy button |
-| wrapText | let
| No | boolean
| false
| Set to `true` to wrap the text
Note that `type` must be "multi" |
-| light | let
| No | boolean
| false
| Set to `true` to enable the light variant |
-| skeleton | let
| No | boolean
| false
| Set to `true` to display the skeleton state |
-| copyButtonDescription | let
| No | string
| -- | Specify the ARIA label for the copy button icon |
-| copyLabel | let
| No | string
| -- | Specify the ARIA label of the copy button |
-| feedback | let
| No | string
| "Copied!"
| Specify the feedback text displayed when clicking the snippet |
-| feedbackTimeout | let
| No | number
| 2000
| Set the timeout duration (ms) to display feedback text |
-| showLessText | let
| No | string
| "Show less"
| Specify the show less text
`type` must be "multi" |
-| showMoreText | let
| No | string
| "Show more"
| Specify the show more text
`type` must be "multi" |
-| id | let
| No | string
| "ccs-" + Math.random().toString(36)
| Set an id for the code element |
+| Prop name | Kind | Reactive | Type | Default value | Description |
+| :-------------------- | :--------------- | :------- | :--------------------------------------------------- | ------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------- |
+| ref | let
| Yes | null | HTMLPreElement
| null
| Obtain a reference to the pre HTML element |
+| showMoreLess | let
| Yes | boolean
| false
| Set to `true` to enable the show more/less button |
+| expanded | let
| Yes | boolean
| false
| Set to `true` to expand a multi-line code snippet (type="multi") |
+| type | let
| No | "single" | "inline" | "multi"
| "single"
| Set the type of code snippet |
+| code | let
| No | string
| -- | Set the code snippet text
Alternatively, use the default slot (e.g., <CodeSnippet>{`code`}</CodeSnippet>) |
+| hideCopyButton | let
| No | boolean
| false
| Set to `true` to hide the copy button |
+| wrapText | let
| No | boolean
| false
| Set to `true` to wrap the text
Note that `type` must be "multi" |
+| light | let
| No | boolean
| false
| Set to `true` to enable the light variant |
+| skeleton | let
| No | boolean
| false
| Set to `true` to display the skeleton state |
+| copyButtonDescription | let
| No | string
| -- | Specify the ARIA label for the copy button icon |
+| copyLabel | let
| No | string
| -- | Specify the ARIA label of the copy button |
+| feedback | let
| No | string
| "Copied!"
| Specify the feedback text displayed when clicking the snippet |
+| feedbackTimeout | let
| No | number
| 2000
| Set the timeout duration (ms) to display feedback text |
+| showLessText | let
| No | string
| "Show less"
| Specify the show less text
`type` must be "multi" |
+| showMoreText | let
| No | string
| "Show more"
| Specify the show more text
`type` must be "multi" |
+| id | let
| No | string
| "ccs-" + Math.random().toString(36)
| Set an id for the code element |
### Slots
@@ -561,18 +561,18 @@ export type ColumnBreakpoint = ColumnSize | ColumnSizeDescriptor;
### Props
-| Prop name | Kind | Reactive | Type | Default value | Description |
-| :------------ | :--------------- | :------- | :------------------------------------------------------------------------------------------------- | ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| as | let
| No | boolean
| false
| Set to `true` to render a custom HTML element
Props are destructured as `props` in the default slot (e.g. <Column let:props><article {...props}>...</article></Column>) |
-| noGutter | let
| No | boolean
| false
| Set to `true` to remove the gutter |
-| noGutterLeft | let
| No | boolean
| false
| Set to `true` to remove the left gutter |
-| noGutterRight | let
| No | boolean
| false
| Set to `true` to remove the right gutter |
-| aspectRatio | let
| No | "2x1" | "16x9" | "9x16" | "1x2" | "4x3" | "3x4" | "1x1"
| -- | Specify the aspect ratio of the column |
-| sm | let
| No | ColumnBreakpoint
| -- | Set the small breakpoint |
-| md | let
| No | ColumnBreakpoint
| -- | Set the medium breakpoint |
-| lg | let
| No | ColumnBreakpoint
| -- | Set the large breakpoint |
-| xlg | let
| No | ColumnBreakpoint
| -- | Set the extra large breakpoint |
-| max | let
| No | ColumnBreakpoint
| -- | Set the maximum breakpoint |
+| Prop name | Kind | Reactive | Type | Default value | Description |
+| :------------ | :--------------- | :------- | :------------------------------------------------------------------------------------------------- | ------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| as | let
| No | boolean
| false
| Set to `true` to render a custom HTML element
Props are destructured as `props` in the default slot (e.g., <Column let:props><article {...props}>...</article></Column>) |
+| noGutter | let
| No | boolean
| false
| Set to `true` to remove the gutter |
+| noGutterLeft | let
| No | boolean
| false
| Set to `true` to remove the left gutter |
+| noGutterRight | let
| No | boolean
| false
| Set to `true` to remove the right gutter |
+| aspectRatio | let
| No | "2x1" | "16x9" | "9x16" | "1x2" | "4x3" | "3x4" | "1x1"
| -- | Specify the aspect ratio of the column |
+| sm | let
| No | ColumnBreakpoint
| -- | Set the small breakpoint |
+| md | let
| No | ColumnBreakpoint
| -- | Set the medium breakpoint |
+| lg | let
| No | ColumnBreakpoint
| -- | Set the large breakpoint |
+| xlg | let
| No | ColumnBreakpoint
| -- | Set the extra large breakpoint |
+| max | let
| No | ColumnBreakpoint
| -- | Set the maximum breakpoint |
### Slots
@@ -1346,15 +1346,15 @@ None.
### Props
-| Prop name | Kind | Reactive | Type | Default value | Description |
-| :------------ | :--------------- | :------- | :------------------- | ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| as | let
| No | boolean
| false
| Set to `true` to render a custom HTML element
Props are destructured as `props` in the default slot (e.g. <Grid let:props><header {...props}>...</header></Grid>) |
-| condensed | let
| No | boolean
| false
| Set to `true` to use the condensed variant |
-| narrow | let
| No | boolean
| false
| Set to `true` to use the narrow variant |
-| fullWidth | let
| No | boolean
| false
| Set to `true` to use the fullWidth variant |
-| noGutter | let
| No | boolean
| false
| Set to `true` to remove the gutter |
-| noGutterLeft | let
| No | boolean
| false
| Set to `true` to remove the left gutter |
-| noGutterRight | let
| No | boolean
| false
| Set to `true` to remove the right gutter |
+| Prop name | Kind | Reactive | Type | Default value | Description |
+| :------------ | :--------------- | :------- | :------------------- | ------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| as | let
| No | boolean
| false
| Set to `true` to render a custom HTML element
Props are destructured as `props` in the default slot (e.g., <Grid let:props><header {...props}>...</header></Grid>) |
+| condensed | let
| No | boolean
| false
| Set to `true` to use the condensed variant |
+| narrow | let
| No | boolean
| false
| Set to `true` to use the narrow variant |
+| fullWidth | let
| No | boolean
| false
| Set to `true` to use the fullWidth variant |
+| noGutter | let
| No | boolean
| false
| Set to `true` to remove the gutter |
+| noGutterLeft | let
| No | boolean
| false
| Set to `true` to remove the left gutter |
+| noGutterRight | let
| No | boolean
| false
| Set to `true` to remove the right gutter |
### Slots
@@ -1370,16 +1370,16 @@ None.
### Props
-| Prop name | Kind | Reactive | Type | Default value | Description |
-| :---------------------- | :--------------- | :------- | :----------------------------------------- | ------------------ | ------------------------------------------------------------------------------------------------------------------------------- |
-| ref | let
| Yes | null | HTMLAnchorElement
| null
| Obtain a reference to the HTML anchor element |
-| isSideNavOpen | let
| Yes | boolean
| false
| Set to `true` to open the side nav |
-| expandedByDefault | let
| No | boolean
| true
| Set to `false` to hide the side nav by default |
-| uiShellAriaLabel | let
| No | string
| -- | Specify the ARIA label for the header |
-| href | let
| No | string
| -- | Specify the `href` attribute |
-| company | let
| No | string
| -- | Specify the company name |
-| platformName | let
| No | string
| ""
| Specify the platform name
Alternatively, use the named slot "platform" (e.g. <span slot="platform">...</span>) |
-| persistentHamburgerMenu | let
| No | boolean
| false
| Set to `true` to persist the hamburger menu |
+| Prop name | Kind | Reactive | Type | Default value | Description |
+| :---------------------- | :--------------- | :------- | :----------------------------------------- | ------------------ | -------------------------------------------------------------------------------------------------------------------------------- |
+| ref | let
| Yes | null | HTMLAnchorElement
| null
| Obtain a reference to the HTML anchor element |
+| isSideNavOpen | let
| Yes | boolean
| false
| Set to `true` to open the side nav |
+| expandedByDefault | let
| No | boolean
| true
| Set to `false` to hide the side nav by default |
+| uiShellAriaLabel | let
| No | string
| -- | Specify the ARIA label for the header |
+| href | let
| No | string
| -- | Specify the `href` attribute |
+| company | let
| No | string
| -- | Specify the company name |
+| platformName | let
| No | string
| ""
| Specify the platform name
Alternatively, use the named slot "platform" (e.g., <span slot="platform">...</span>) |
+| persistentHamburgerMenu | let
| No | boolean
| false
| Set to `true` to persist the hamburger menu |
### Slots
@@ -1397,14 +1397,25 @@ None.
## `HeaderAction`
+### Types
+
+```ts
+export interface HeaderActionSlideTransition {
+ delay?: number;
+ duration?: number;
+ easing?: (t: number) => number;
+}
+```
+
### Props
-| Prop name | Kind | Reactive | Type | Default value | Description |
-| :-------- | :--------------- | :------- | :------------------------------------------------------------------------------------ | ------------------ | ------------------------------------------------------------------------------------------------------------ |
-| ref | let
| Yes | null | HTMLButtonElement
| null
| Obtain a reference to the button HTML element |
-| isOpen | let
| Yes | boolean
| false
| Set to `true` to open the panel |
-| icon | let
| No | { render: import("carbon-icons-svelte").CarbonIcon; skeleton: boolean; }
| -- | Specify the icon props |
-| text | let
| No | string
| -- | Specify the text
Alternatively, use the named slot "text" (e.g. <div slot="text">...</div>) |
+| Prop name | Kind | Reactive | Type | Default value | Description |
+| :--------- | :--------------- | :------- | :------------------------------------------------------------------------------------ | ------------------------------ | ------------------------------------------------------------------------------------------------------------- |
+| ref | let
| Yes | null | HTMLButtonElement
| null
| Obtain a reference to the button HTML element |
+| isOpen | let
| Yes | boolean
| false
| Set to `true` to open the panel |
+| icon | let
| No | { render: import("carbon-icons-svelte").CarbonIcon; skeleton: boolean; }
| -- | Specify the icon props |
+| text | let
| No | string
| -- | Specify the text
Alternatively, use the named slot "text" (e.g., <div slot="text">...</div>) |
+| transition | let
| No | false | HeaderActionSlideTransition
| { duration: 200 }
| Customize the panel transition (i.e., `transition:slide`)
Set to `false` to disable the transition |
### Slots
@@ -2728,14 +2739,14 @@ None.
### Props
-| Prop name | Kind | Reactive | Type | Default value | Description |
-| :------------ | :--------------- | :------- | :------------------- | ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| as | let
| No | boolean
| false
| Set to `true` to render a custom HTML element
Props are destructured as `props` in the default slot (e.g. <Row let:props><section {...props}>...</section></Row>) |
-| condensed | let
| No | boolean
| false
| Set to `true` to use the condensed variant |
-| narrow | let
| No | boolean
| false
| Set to `true` to use the narrow variant |
-| noGutter | let
| No | boolean
| false
| Set to `true` to remove the gutter |
-| noGutterLeft | let
| No | boolean
| false
| Set to `true` to remove the left gutter |
-| noGutterRight | let
| No | boolean
| false
| Set to `true` to remove the right gutter |
+| Prop name | Kind | Reactive | Type | Default value | Description |
+| :------------ | :--------------- | :------- | :------------------- | ------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| as | let
| No | boolean
| false
| Set to `true` to render a custom HTML element
Props are destructured as `props` in the default slot (e.g., <Row let:props><section {...props}>...</section></Row>) |
+| condensed | let
| No | boolean
| false
| Set to `true` to use the condensed variant |
+| narrow | let
| No | boolean
| false
| Set to `true` to use the narrow variant |
+| noGutter | let
| No | boolean
| false
| Set to `true` to remove the gutter |
+| noGutterLeft | let
| No | boolean
| false
| Set to `true` to remove the left gutter |
+| noGutterRight | let
| No | boolean
| false
| Set to `true` to remove the right gutter |
### Slots
@@ -3323,13 +3334,13 @@ None.
### Props
-| Prop name | Kind | Reactive | Type | Default value | Description |
-| :-------- | :--------------- | :------- | :----------------------------------------- | ------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------- |
-| ref | let
| Yes | null | HTMLButtonElement
| null
| Obtain a reference to the button HTML element |
-| selected | let
| Yes | boolean
| false
| Set to `true` for the switch to be selected |
-| text | let
| No | string
| "Provide text"
| Specify the switch text
Alternatively, use the named slot "text" (e.g. <span slot="text">...</span>) |
-| disabled | let
| No | boolean
| false
| Set to `true` to disable the switch |
-| id | let
| No | string
| "ccs-" + Math.random().toString(36)
| Set an id for the button element |
+| Prop name | Kind | Reactive | Type | Default value | Description |
+| :-------- | :--------------- | :------- | :----------------------------------------- | ------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------- |
+| ref | let
| Yes | null | HTMLButtonElement
| null
| Obtain a reference to the button HTML element |
+| selected | let
| Yes | boolean
| false
| Set to `true` for the switch to be selected |
+| text | let
| No | string
| "Provide text"
| Specify the switch text
Alternatively, use the named slot "text" (e.g., <span slot="text">...</span>) |
+| disabled | let
| No | boolean
| false
| Set to `true` to disable the switch |
+| id | let
| No | string
| "ccs-" + Math.random().toString(36)
| Set an id for the button element |
### Slots
@@ -3351,14 +3362,14 @@ None.
### Props
-| Prop name | Kind | Reactive | Type | Default value | Description |
-| :-------- | :--------------- | :------- | :----------------------------------------- | ------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------- |
-| ref | let
| Yes | null | HTMLAnchorElement
| null
| Obtain a reference to the anchor HTML element |
-| label | let
| No | string
| ""
| Specify the tab label
Alternatively, use the default slot (e.g. <Tab><span>Label</span></Tab>) |
-| href | let
| No | string
| "#"
| Specify the href attribute |
-| disabled | let
| No | boolean
| false
| Set to `true` to disable the tab |
-| tabindex | let
| No | string
| "0"
| Specify the tabindex |
-| id | let
| No | string
| "ccs-" + Math.random().toString(36)
| Set an id for the top-level element |
+| Prop name | Kind | Reactive | Type | Default value | Description |
+| :-------- | :--------------- | :------- | :----------------------------------------- | ------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------- |
+| ref | let
| Yes | null | HTMLAnchorElement
| null
| Obtain a reference to the anchor HTML element |
+| label | let
| No | string
| ""
| Specify the tab label
Alternatively, use the default slot (e.g., <Tab><span>Label</span></Tab>) |
+| href | let
| No | string
| "#"
| Specify the href attribute |
+| disabled | let
| No | boolean
| false
| Set to `true` to disable the tab |
+| tabindex | let
| No | string
| "0"
| Specify the tabindex |
+| id | let
| No | string
| "ccs-" + Math.random().toString(36)
| Set an id for the top-level element |
### Slots
@@ -4129,21 +4140,21 @@ None.
### Props
-| Prop name | Kind | Reactive | Type | Default value | Description |
-| :-------------- | :--------------- | :------- | :-------------------------------------------------------------- | ------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------- |
-| refIcon | let
| Yes | null | HTMLDivElement
| null
| Obtain a reference to the icon HTML element |
-| refTooltip | let
| Yes | null | HTMLDivElement
| null
| Obtain a reference to the tooltip HTML element |
-| ref | let
| Yes | null | HTMLDivElement
| null
| Obtain a reference to the trigger text HTML element |
-| open | let
| Yes | boolean
| false
| Set to `true` to open the tooltip |
-| direction | let
| No | "top" | "right" | "bottom" | "left"
| "bottom"
| Set the direction of the tooltip relative to the button |
-| hideIcon | let
| No | boolean
| false
| Set to `true` to hide the tooltip icon |
-| icon | let
| No | typeof import("carbon-icons-svelte").CarbonIcon
| -- | Specify the icon from `carbon-icons-svelte` to render for the tooltip button
Icon size must be 16px (e.g. `Add16`, `Task16`) |
-| iconDescription | let
| No | string
| ""
| Specify the ARIA label for the tooltip button |
-| iconName | let
| No | string
| ""
| Specify the icon name attribute |
-| tabindex | let
| No | string
| "0"
| Set the button tabindex |
-| tooltipId | let
| No | string
| "ccs-" + Math.random().toString(36)
| Set an id for the tooltip |
-| triggerId | let
| No | string
| "ccs-" + Math.random().toString(36)
| Set an id for the tooltip button |
-| triggerText | let
| No | string
| ""
| Set the tooltip button text |
+| Prop name | Kind | Reactive | Type | Default value | Description |
+| :-------------- | :--------------- | :------- | :-------------------------------------------------------------- | ------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------- |
+| refIcon | let
| Yes | null | HTMLDivElement
| null
| Obtain a reference to the icon HTML element |
+| refTooltip | let
| Yes | null | HTMLDivElement
| null
| Obtain a reference to the tooltip HTML element |
+| ref | let
| Yes | null | HTMLDivElement
| null
| Obtain a reference to the trigger text HTML element |
+| open | let
| Yes | boolean
| false
| Set to `true` to open the tooltip |
+| direction | let
| No | "top" | "right" | "bottom" | "left"
| "bottom"
| Set the direction of the tooltip relative to the button |
+| hideIcon | let
| No | boolean
| false
| Set to `true` to hide the tooltip icon |
+| icon | let
| No | typeof import("carbon-icons-svelte").CarbonIcon
| -- | Specify the icon from `carbon-icons-svelte` to render for the tooltip button
Icon size must be 16px (e.g., `Add16`, `Task16`) |
+| iconDescription | let
| No | string
| ""
| Specify the ARIA label for the tooltip button |
+| iconName | let
| No | string
| ""
| Specify the icon name attribute |
+| tabindex | let
| No | string
| "0"
| Set the button tabindex |
+| tooltipId | let
| No | string
| "ccs-" + Math.random().toString(36)
| Set an id for the tooltip |
+| triggerId | let
| No | string
| "ccs-" + Math.random().toString(36)
| Set an id for the tooltip button |
+| triggerText | let
| No | string
| ""
| Set the tooltip button text |
### Slots
diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json
index 4411396f..453b3c84 100644
--- a/docs/src/COMPONENT_API.json
+++ b/docs/src/COMPONENT_API.json
@@ -191,7 +191,7 @@
{
"name": "title",
"kind": "let",
- "description": "Specify the title of the accordion item heading\nAlternatively, use the named slot \"title\" (e.g.
+ Select a transition option below and click on the App Switcher icon in + the top right. +
+