From 2563cc9c4b98c931e7f08e7374589a0d0a2b2e76 Mon Sep 17 00:00:00 2001 From: ruru <142723369+ruru-m07@users.noreply.github.com> Date: Sat, 17 Aug 2024 17:23:46 +0530 Subject: [PATCH] fix(docs): Animation Variants codeblock --- apps/www/content/docs/components/select.mdx | 44 +++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/apps/www/content/docs/components/select.mdx b/apps/www/content/docs/components/select.mdx index 444d01e..d4e3a63 100644 --- a/apps/www/content/docs/components/select.mdx +++ b/apps/www/content/docs/components/select.mdx @@ -353,7 +353,51 @@ The `Select` component supports two animation variants: `zoom`, `scaleBounce` Et +```tsx +"use client"; +import React from "react"; +import { + Select, + selectAnimationVariants, + SelectContent, + SelectGroup, + SelectItem, + SelectLabel, + SelectSeparator, + SelectTrigger, + SelectValue, +} from "ruru-ui/components/select"; + +const SelectAnimationVariants = () => { + return ( +
+ {Object.keys(selectAnimationVariants).map((variantKey: any, index) => ( +
+ +
+ ))} +
+ ); +}; + +export default SelectAnimationVariants; +```