From 2715ed9c38bf52081476e11c1d3d5043ff67cf71 Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Thu, 13 Jul 2023 08:46:51 -0700 Subject: [PATCH] chore(ui-shell): update `company` prop description in `Header` (#1770) --- COMPONENT_INDEX.md | 2 +- docs/src/COMPONENT_API.json | 2 +- src/UIShell/Header.svelte | 5 +++-- types/UIShell/Header.svelte.d.ts | 3 ++- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md index f7eb9e64..b3c23212 100644 --- a/COMPONENT_INDEX.md +++ b/COMPONENT_INDEX.md @@ -1575,7 +1575,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 | +| 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 | diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json index 8081cd3f..ee847ae5 100644 --- a/docs/src/COMPONENT_API.json +++ b/docs/src/COMPONENT_API.json @@ -4751,7 +4751,7 @@ { "name": "company", "kind": "let", - "description": "Specify the company name", + "description": "Specify the company name. \nAlternatively, use the named slot \"company\" (e.g., `...`)", "type": "string", "isFunction": false, "isFunctionDeclaration": false, diff --git a/src/UIShell/Header.svelte b/src/UIShell/Header.svelte index c0153607..6ef59a15 100644 --- a/src/UIShell/Header.svelte +++ b/src/UIShell/Header.svelte @@ -17,8 +17,9 @@ */ export let href = undefined; - /** - * Specify the company name + /** + * Specify the company name. + * Alternatively, use the named slot "company" (e.g., `...`) * @type {string} */ export let company = undefined; diff --git a/types/UIShell/Header.svelte.d.ts b/types/UIShell/Header.svelte.d.ts index 5f620ab8..fc78b0af 100644 --- a/types/UIShell/Header.svelte.d.ts +++ b/types/UIShell/Header.svelte.d.ts @@ -28,7 +28,8 @@ export interface HeaderProps href?: string; /** - * Specify the company name + * Specify the company name. + * Alternatively, use the named slot "company" (e.g., `...`) * @default undefined */ company?: string;