mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-20 12:23:02 +00:00
breaking(header-action): use SlideParams to type transition
prop
This commit is contained in:
parent
53853cf64b
commit
ea36e54664
1 changed files with 2 additions and 6 deletions
|
@ -1,8 +1,4 @@
|
||||||
<script>
|
<script>
|
||||||
/**
|
|
||||||
* @typedef {{ delay?: number; duration?: number; easing?: (t: number) => number; }} HeaderActionSlideTransition
|
|
||||||
*/
|
|
||||||
|
|
||||||
/** Set to `true` to open the panel */
|
/** Set to `true` to open the panel */
|
||||||
export let isOpen = false;
|
export let isOpen = false;
|
||||||
|
|
||||||
|
@ -29,9 +25,9 @@
|
||||||
export let ref = null;
|
export let ref = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Customize the panel transition (i.e., `transition:slide`)
|
* Customize the panel transition (i.e., `transition:slide`).
|
||||||
* Set to `false` to disable the transition
|
* Set to `false` to disable the transition
|
||||||
* @type {false | HeaderActionSlideTransition}
|
* @type {false | import("svelte/transition").SlideParams}
|
||||||
*/
|
*/
|
||||||
export let transition = { duration: 200 };
|
export let transition = { duration: 200 };
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue