Add TransitionRoot alias for Transition

Fixes #46
This commit is contained in:
Ryan Gossiaux
2022-03-06 23:33:39 -08:00
parent fada4f28a5
commit 026b187890
2 changed files with 3 additions and 1 deletions

View File

@@ -1,2 +1,2 @@
export { default as TransitionChild } from "./TransitionChildWrapper.svelte";
export { default as Transition } from "./TransitionRoot.svelte";
export { default as Transition, default as TransitionRoot } from "./TransitionRoot.svelte";

View File

@@ -194,6 +194,8 @@ This is useful if you want something to transition in on initial page load, or w
### Transition
This component is also exported as `TransitionRoot`, to maintain compatibility with some Tailwind UI snippets.
| Prop | Default | Type | Description |
| ----------- | ------- | --------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| `show` | -- | `boolean` | Whether the children should be shown or hidden |