chore(ui-shell): remove ambiguous type prop in favor of $$restProps

This commit is contained in:
Eric Liu 2020-07-26 15:12:28 -07:00
commit 566a281d81
2 changed files with 32 additions and 6 deletions

View file

@ -1,7 +1,21 @@
<script>
export let type = undefined;
/**
* Set to `true` to open the panel
* @type {boolean} [isOpen=false]
*/
export let isOpen = false;
/**
* Specify the icon props
* @type {{ render: typeof import("carbon-icons-svelte/lib/Add16").default; skeleton: boolean; }} [icon]
*/
export let icon = undefined;
export let isOpen = undefined;
/**
* Specify the text
* Alternatively, use the named slot "text" (e.g. <div slot="text">...</div>)
* @type {string} [text]
*/
export let text = undefined;
import { Icon } from "../../Icon";
@ -38,7 +52,6 @@
<div>
<button
type="button"
aria-label={type}
class:bx--header__action={true}
class:bx--header__action--active={isOpen}
class:action-text={text}