feat(ui-shell): allow custom hamburger menu icons

This commit is contained in:
Eric Y Liu 2021-05-02 15:35:43 -07:00
commit 3620f94f97
5 changed files with 78 additions and 12 deletions

View file

@ -48,6 +48,18 @@ export interface HeaderProps
* @default null
*/
ref?: null | HTMLAnchorElement;
/**
* Specify the icon from `carbon-icons-svelte` to render for the closed state
* Defaults to `Menu20`
*/
iconMenu?: typeof import("carbon-icons-svelte").CarbonIcon;
/**
* Specify the icon from `carbon-icons-svelte` to render for the opened state
* Defaults to `Close20`
*/
iconClose?: typeof import("carbon-icons-svelte").CarbonIcon;
}
export default class Header extends SvelteComponentTyped<