mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 03:26:36 +00:00
HeaderGlobalActions: type definition, doc and test updated
This commit is contained in:
parent
cf2aa24552
commit
256332b16a
3 changed files with 4 additions and 6 deletions
|
@ -31,7 +31,7 @@
|
||||||
<SkipToContent />
|
<SkipToContent />
|
||||||
</svelte:fragment>
|
</svelte:fragment>
|
||||||
<HeaderUtilities>
|
<HeaderUtilities>
|
||||||
<HeaderGlobalAction aria-label="Settings" icon="{SettingsAdjust}" />
|
<HeaderGlobalAction iconDescription="Settings" icon="{SettingsAdjust}" />
|
||||||
<HeaderAction
|
<HeaderAction
|
||||||
bind:isOpen="{isOpen1}"
|
bind:isOpen="{isOpen1}"
|
||||||
icon="{UserAvatarFilledAlt}"
|
icon="{UserAvatarFilledAlt}"
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
<SkipToContent />
|
<SkipToContent />
|
||||||
</div>
|
</div>
|
||||||
<HeaderUtilities>
|
<HeaderUtilities>
|
||||||
<HeaderGlobalAction aria-label="Settings" icon="{SettingsAdjust}" />
|
<HeaderGlobalAction iconDescription="Settings" icon="{SettingsAdjust}" />
|
||||||
<HeaderAction
|
<HeaderAction
|
||||||
bind:isOpen
|
bind:isOpen
|
||||||
on:open
|
on:open
|
||||||
|
|
6
types/UIShell/HeaderGlobalAction.svelte.d.ts
vendored
6
types/UIShell/HeaderGlobalAction.svelte.d.ts
vendored
|
@ -1,9 +1,7 @@
|
||||||
import type { SvelteComponentTyped } from "svelte";
|
import type { SvelteComponentTyped } from "svelte";
|
||||||
import type { SvelteHTMLElements } from "svelte/elements";
|
import type { ButtonProps } from "../Button/Button.svelte";
|
||||||
|
|
||||||
type RestProps = SvelteHTMLElements["button"];
|
export interface HeaderGlobalActionProps extends ButtonProps {
|
||||||
|
|
||||||
export interface HeaderGlobalActionProps extends RestProps {
|
|
||||||
/**
|
/**
|
||||||
* Set to `true` to use the active variant
|
* Set to `true` to use the active variant
|
||||||
* @default false
|
* @default false
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue