import { Box, Card, Flex, Grid, Text, Theme } from "@radix-ui/themes" import type { Meta, StoryObj } from "@storybook/react" import { Inset } from "./Inset" const meta: Meta = { title: "base/containment/Inset", component: Inset, parameters: { layout: "centered", docs: { description: { component: "The Inset component creates an inset area for content, useful for creating visual depth and padding in cards or panels.", }, }, }, argTypes: { side: { control: "select", options: ["all", "x", "y", "top", "right", "bottom", "left"], description: "Which sides to apply the inset to.", }, p: { control: "text", description: 'Padding value (e.g., "current", "0", "1", "2", etc.)', }, asChild: { control: "boolean", description: "Render as a child element.", }, }, } as Meta export default meta type Story = StoryObj const TypographyImage = ({ width = "100%", height = 140 }) => ( Bold typography ) const TypographyText = () => ( <> Typography is the art and technique of arranging type to make written language legible, readable and appealing when displayed. ) // Default story showing the Inset showcase export const Default: Story = { render: () => ( Inset Typography is the art and technique of arranging type to make written language legible, readable and appealing when displayed. The arrangement of type involves selecting typefaces, point sizes, line lengths, line-spacing, and letter-spacing. INSET DEMO ), } // Side-by-side comparison export const LeftRightComparison: Story = { render: () => ( Left vs Right Image Placement Image Left - side="left" p="0" Image Right - side="right" p="0" With Inset - side="all" p="3" ), } // Interactive playground with side images export const Playground: Story = { args: { side: "left", p: "0", }, render: args => ( {args.side === "left" || args.side === "all" || args.side === "x" ? ( <> Interactive Inset Adjust the controls to see how the inset affects image positioning. Try different side values! ) : ( <> Interactive Inset Adjust the controls to see how the inset affects image positioning. Try different side values! )} ), }