-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0aab524
commit bcb84a0
Showing
2 changed files
with
9 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,13 @@ | |
based on [email protected], | ||
Copyright (c) 2018 Framer B.V. | ||
*/ | ||
export type { AnimatePresenceProps } from "./types.js"; | ||
export type { AnimatePresenceProps } from './types.js'; | ||
/** | ||
* `AnimatePresence` enables the animation of components that have been removed from the tree. | ||
* | ||
* You can provide an array T[] to the `list` prop, where each item has to have a unique `key` attribute. Via slot prop `item` | ||
* | ||
* You can provide an array T[] to the `list` prop, where each item has to have a unique `key` attribute. Via slot prop `item` | ||
* single items of the array are passed down to children, so that for each array item one component is rendered. | ||
* | ||
* | ||
* Alternatively you can leave `list` undefined and supply a boolean to the `show` prop. If `true`, the child is rendered. | ||
* | ||
* @motion | ||
|
@@ -41,6 +41,6 @@ export type { AnimatePresenceProps } from "./types.js"; | |
* | ||
* @public | ||
*/ | ||
export type ConditionalGeneric<T> = T extends {key:any} ? T : { key: 1}; // Better handling of defaults and the optional list prop | ||
export { default as AnimatePresence } from './AnimatePresenceTBA.svelte'; | ||
export { PresenceChild } from './PresenceChild/index.js'; | ||
export type ConditionalGeneric<T> = T extends { key: any } ? T : { key: 1 }; // Better handling of defaults and the optional list prop | ||
export { default as AnimatePresence } from './AnimatePresence.svelte'; | ||
export { PresenceChild } from './PresenceChild/index.js'; |