import { Meta, StoryObj } from "@storybook/react" import { list } from "radash" import React, { useState } from "react" import { Button } from "../Button" import { CenterAligned } from "../CenterAligned" import { Flex } from "../Flex" import { FlexColumn } from "../FlexColumn" import { AnimateHeight, AnimateHeightProps } from "./AnimateHeight" type Story = StoryObj const meta: Meta = { title: "Design System/AnimateHeight", component: AnimateHeight, args: { className: "bg-blue-3", }, } export default meta const Template = (args: AnimateHeightProps) => { const [childHeight, setChildHeight] = useState(200) const [childWidth, setChildWidth] = useState(200) return ( <>
) } export const Default: Story = { render: Template, } export const FullWidth: Story = { render: function Render() { const [contentLines, setContentLines] = useState(1) return ( <> {list(1, contentLines).map((_, index) => (
Line {index + 1}
))}
) }, }