diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md
index 81a8ea4a..6d33f6cc 100644
--- a/COMPONENT_INDEX.md
+++ b/COMPONENT_INDEX.md
@@ -1,6 +1,6 @@
# Component Index
-> 165 components exported from carbon-components-svelte@0.80.0.
+> 166 components exported from carbon-components-svelte@0.80.0.
## Components
@@ -63,6 +63,7 @@
- [`HeaderPanelLinks`](#headerpanellinks)
- [`HeaderSearch`](#headersearch)
- [`HeaderUtilities`](#headerutilities)
+- [`HelperText`](#helpertext)
- [`ImageLoader`](#imageloader)
- [`InlineLoading`](#inlineloading)
- [`InlineNotification`](#inlinenotification)
@@ -1580,7 +1581,7 @@ None.
| expandedByDefault | No | let
| No | boolean
| true
| Set to `false` to hide the side nav by default |
| uiShellAriaLabel | No | let
| No | string
| undefined
| Specify the ARIA label for the header |
| href | No | let
| No | string
| undefined
| Specify the `href` attribute |
-| company | No | let
| No | string
| undefined
| Specify the company name.
Alternatively, use the named slot "company" (e.g., `<span slot="company">...</span>`) |
+| company | No | let
| No | string
| undefined
| Specify the company name.
Alternatively, use the named slot "company" (e.g., `<span slot="company">...</span>`) |
| platformName | No | let
| No | string
| ""
| Specify the platform name.
Alternatively, use the named slot "platform" (e.g., `<span slot="platform">...</span>`) |
| persistentHamburgerMenu | No | let
| No | boolean
| false
| Set to `true` to persist the hamburger menu |
| expansionBreakpoint | No | let
| No | number
| 1056
| The window width (px) at which the SideNav is expanded and the hamburger menu is hidden.
1056 represents the "large" breakpoint in pixels from the Carbon Design System:
- small: 320
- medium: 672
- large: 1056
- x-large: 1312
- max: 1584 |
@@ -1866,6 +1867,26 @@ None.
None.
+## `HelperText`
+
+### Props
+
+| Prop name | Required | Kind | Reactive | Type | Default value | Description |
+| :--------- | :------- | :--------------- | :------- | -------------------- | ------------------ | -------------------------------------- |
+| helperText | No | let
| No | string
| ""
| Specify the helper text as parameter |
+| disabled | No | let
| No | boolean
| false
| Set to `true` for the disabled variant |
+| inline | No | let
| No | boolean
| false
| Set to `true` to use inline variant |
+
+### Slots
+
+| Slot name | Default | Props | Fallback |
+| :-------- | :------ | :---- | :------------------------ |
+| -- | Yes | -- | {helperText}
|
+
+### Events
+
+None.
+
## `ImageLoader`
### Props
diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json
index cf5a3652..382d5294 100644
--- a/docs/src/COMPONENT_API.json
+++ b/docs/src/COMPONENT_API.json
@@ -1,5 +1,5 @@
{
- "total": 165,
+ "total": 166,
"components": [
{
"moduleName": "Accordion",
@@ -4788,7 +4788,7 @@
{
"name": "company",
"kind": "let",
- "description": "Specify the company name.\n\nAlternatively, use the named slot \"company\" (e.g., `...`)",
+ "description": "Specify the company name.\nAlternatively, use the named slot \"company\" (e.g., `...`)",
"type": "string",
"isFunction": false,
"isFunctionDeclaration": false,
@@ -5431,6 +5431,60 @@
"events": [],
"typedefs": []
},
+ {
+ "moduleName": "HelperText",
+ "filePath": "src/HelperText/HelperText.svelte",
+ "props": [
+ {
+ "name": "helperText",
+ "kind": "let",
+ "description": "Specify the helper text as parameter",
+ "type": "string",
+ "value": "\"\"",
+ "isFunction": false,
+ "isFunctionDeclaration": false,
+ "isRequired": false,
+ "constant": false,
+ "reactive": false
+ },
+ {
+ "name": "disabled",
+ "kind": "let",
+ "description": "Set to `true` for the disabled variant",
+ "type": "boolean",
+ "value": "false",
+ "isFunction": false,
+ "isFunctionDeclaration": false,
+ "isRequired": false,
+ "constant": false,
+ "reactive": false
+ },
+ {
+ "name": "inline",
+ "kind": "let",
+ "description": "Set to `true` to use inline variant",
+ "type": "boolean",
+ "value": "false",
+ "isFunction": false,
+ "isFunctionDeclaration": false,
+ "isRequired": false,
+ "constant": false,
+ "reactive": false
+ }
+ ],
+ "moduleExports": [],
+ "slots": [
+ {
+ "name": "__default__",
+ "default": true,
+ "fallback": "{helperText}",
+ "slot_props": "{}"
+ }
+ ],
+ "events": [],
+ "typedefs": [],
+ "rest_props": { "type": "Element", "name": "div" }
+ },
{
"moduleName": "ImageLoader",
"filePath": "src/ImageLoader/ImageLoader.svelte",
diff --git a/src/ComboBox/ComboBox.svelte b/src/ComboBox/ComboBox.svelte
index 0aee1350..f20c4350 100644
--- a/src/ComboBox/ComboBox.svelte
+++ b/src/ComboBox/ComboBox.svelte
@@ -117,6 +117,7 @@
import ListBoxMenuIcon from "../ListBox/ListBoxMenuIcon.svelte";
import ListBoxMenuItem from "../ListBox/ListBoxMenuItem.svelte";
import ListBoxSelection from "../ListBox/ListBoxSelection.svelte";
+ import HelperText from "../HelperText/HelperText.svelte";
const dispatch = createEventDispatcher();
@@ -415,11 +416,8 @@
{/if}
{#if !invalid && helperText && !warn}
-