From 026b1878908e4768414ac5530cad8d9251cafbe2 Mon Sep 17 00:00:00 2001 From: Ryan Gossiaux Date: Sun, 6 Mar 2022 23:33:39 -0800 Subject: [PATCH] Add TransitionRoot alias for Transition Fixes #46 --- src/lib/components/transitions/index.ts | 2 +- src/routes/docs/transition.svx | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/components/transitions/index.ts b/src/lib/components/transitions/index.ts index 62109dc..dbe76ad 100644 --- a/src/lib/components/transitions/index.ts +++ b/src/lib/components/transitions/index.ts @@ -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"; diff --git a/src/routes/docs/transition.svx b/src/routes/docs/transition.svx index ad5b219..c1baef5 100644 --- a/src/routes/docs/transition.svx +++ b/src/routes/docs/transition.svx @@ -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 |