From 22e353b9decd34406a12bdf86d00d5e4178c0615 Mon Sep 17 00:00:00 2001 From: Lucas Goyeche Date: Fri, 24 Nov 2023 23:27:33 -0300 Subject: [PATCH] feat(cli): add collapsible animations by default --- packages/cli/src/utils/templates.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/cli/src/utils/templates.ts b/packages/cli/src/utils/templates.ts index 3eae5012..c94e48a3 100644 --- a/packages/cli/src/utils/templates.ts +++ b/packages/cli/src/utils/templates.ts @@ -128,10 +128,20 @@ module.exports = { from: { height: "var(--radix-accordion-content-height)" }, to: { height: 0 }, }, + "collapsible-down": { + from: { height: 0 }, + to: { height: 'var(--radix-collapsible-content-height)' }, + }, + "collapsible-up": { + from: { height: 'var(--radix-collapsible-content-height)' }, + to: { height: 0 }, + }, }, animation: { "accordion-down": "accordion-down 0.2s ease-out", "accordion-up": "accordion-up 0.2s ease-out", + "collapsible-down": "collapsible-down 0.2s ease-in-out", + "collapsible-up": "collapsible-up 0.2s ease-in-out", }, }, },