file: ./content/react/components/action-button.mdx # Action Button 사용자가 특정 액션을 실행할 수 있도록 도와주는 컴포넌트입니다. ```tsx import { ActionButton } from "seed-design/ui/action-button"; export default function ActionButtonPreview() { return 라벨; } ``` ## Installation ## Props

{"버튼에 등록된 비동기 작업이 진행 중임을 사용자에게 알립니다."}

}, disabled: { "type": "boolean", "default": "false", description: <>

{"버튼의 비활성화 여부를 나타냅니다."}

}, asChild: { "type": "boolean", "default": "false", description: <>

{"Whether the element should be rendered as a child of a slot."}

}, flexGrow: { "type": "0 | 1 | (number & {})", "default": undefined } }} /> ## Examples ### Brand Solid ```tsx import { ActionButton } from "seed-design/ui/action-button"; export default function ActionButtonBrandSolid() { return 라벨; } ``` ### Neutral Solid ```tsx import { ActionButton } from "seed-design/ui/action-button"; export default function ActionButtonNeutralSolid() { return 라벨; } ``` ### Neutral Weak ```tsx import { ActionButton } from "seed-design/ui/action-button"; export default function ActionButtonNeutralWeak() { return 라벨; } ``` ### Critical Solid ```tsx import { ActionButton } from "seed-design/ui/action-button"; export default function ActionButtonCriticalSolid() { return 라벨; } ``` ### Brand Outline ```tsx import { ActionButton } from "seed-design/ui/action-button"; export default function ActionButtonBrandOutline() { return 라벨; } ``` ### Neutral Outline ```tsx import { ActionButton } from "seed-design/ui/action-button"; export default function ActionButtonNeutralOutline() { return 라벨; } ``` ### Icon Only ```tsx import { IconPlusFill } from "@karrotmarket/react-monochrome-icon"; import { Icon } from "@seed-design/react"; import { ActionButton } from "seed-design/ui/action-button"; export default function ActionButtonIconOnly() { return ( } /> ); } ``` ### Prefix Icon ```tsx import { IconPlusFill } from "@karrotmarket/react-monochrome-icon"; import { PrefixIcon } from "@seed-design/react"; import { ActionButton } from "seed-design/ui/action-button"; export default function ActionButtonPrefixIcon() { return ( } /> 라벨 ); } ``` ### Suffix Icon ```tsx import { IconChevronRightFill } from "@karrotmarket/react-monochrome-icon"; import { SuffixIcon } from "@seed-design/react"; import { ActionButton } from "seed-design/ui/action-button"; export default function ActionButtonSuffixIcon() { return ( 라벨 } /> ); } ``` ### Disabled ```tsx import { ActionButton } from "seed-design/ui/action-button"; export default function ActionButtonDisabled() { return 라벨; } ``` ### Loading ```tsx import { useState } from "react"; import { ActionButton } from "seed-design/ui/action-button"; export default function ActionButtonLoading() { const [loading, setLoading] = useState(false); function handleClick() { setLoading(true); setTimeout(() => setLoading(false), 2000); } // 이벤트 핸들링이 필요할 수 있으므로 loading은 disabled를 포함하지 않습니다. 이벤트 발생을 원하지 않는 경우, disabled 속성을 추가해주세요. return ( 시간이 걸리는 액션 ); } ``` file: ./content/react/components/action-chip.mdx # Action Chip 사용자가 특정 액션을 실행할 수 있도록 도와주는 Pill 형태의 컴포넌트입니다. ```tsx import { ActionChip } from "@seed-design/react"; export default function ActionChipPreview() { return 라벨; } ``` ## Usage ```tsx import { ActionChip } from "@seed-design/react"; ``` ```tsx ``` ## Props

{"Whether the element should be rendered as a child of a slot."}

} }} /> ## Examples ### Medium ```tsx import { ActionChip } from "@seed-design/react"; export default function ActionChipMedium() { return 라벨; } ``` ### Small ```tsx import { ActionChip } from "@seed-design/react"; export default function ActionChipSmall() { return 라벨; } ``` ### Icon Only ```tsx import { IconPlusFill } from "@karrotmarket/react-monochrome-icon"; import { ActionChip, Icon } from "@seed-design/react"; export default function ActionChipIconOnly() { return ( } /> ); } ``` ### Prefix Icon ```tsx import { IconPlusFill } from "@karrotmarket/react-monochrome-icon"; import { ActionChip, PrefixIcon } from "@seed-design/react"; export default function ActionChipPrefixIcon() { return ( } /> 라벨 ); } ``` ### Suffix Icon ```tsx import { IconChevronDownFill } from "@karrotmarket/react-monochrome-icon"; import { ActionChip, SuffixIcon } from "@seed-design/react"; export default function ActionChipSuffixIcon() { return ( 라벨 } /> ); } ``` file: ./content/react/components/action-sheet.mdx # Action Sheet Action Sheet는 사용자의 작업과 관련된 선택지를 제공하는 시트 형태의 컴포넌트입니다. ```tsx import { ActionSheetContent, ActionSheetItem, ActionSheetRoot, ActionSheetTrigger, } from "seed-design/ui/action-sheet"; import { ActionButton } from "seed-design/ui/action-button"; const ActionSheetPreview = () => { return ( Open ); }; export default ActionSheetPreview; ``` ## Installation ## Props ### `ActionSheetRoot`

{"The role of the dialog."}

}, closeOnInteractOutside: { "type": "boolean", "default": "true", description: <>

{"Whether to close the dialog when the outside is clicked"}

}, closeOnEscape: { "type": "boolean", "default": "true", description: <>

{"Whether to close the dialog when the escape key is pressed"}

}, lazyMount: { "type": "boolean", "default": "false", description: <>

{"Whether to enable lazy mounting"}

}, unmountOnExit: { "type": "boolean", "default": "false", description: <>

{"Whether to unmount on exit."}

}, open: { "type": "boolean", "default": undefined }, defaultOpen: { "type": "boolean", "default": undefined }, onOpenChange: { "type": "((open: boolean) => void)", "default": undefined } }} /> ### `ActionSheetContent`

{"Whether the element should be rendered as a child of a slot."}

} }} /> ### `ActionSheetItem` file: ./content/react/components/alert-dialog.mdx # Alert Dialog 이 문서는 정리 중이에요. 문의 내용은 #_design_core 채널을 찾아주세요. ```tsx import { ResponsivePair } from "@seed-design/react"; import { ActionButton } from "seed-design/ui/action-button"; import { AlertDialogAction, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogRoot, AlertDialogTitle, AlertDialogTrigger, } from "seed-design/ui/alert-dialog"; const AlertDialogSingle = () => { return ( // You can set z-index dialog with "--layer-index" custom property. useful for stackflow integration. 열기 주의 이 작업은 되돌릴 수 없습니다. 취소 확인 ); }; export default AlertDialogSingle; ``` ## Installation ## Props

{"The role of the dialog."}

}, closeOnInteractOutside: { "type": "boolean", "default": "true", description: <>

{"Whether to close the dialog when the outside is clicked"}

}, closeOnEscape: { "type": "boolean", "default": "true", description: <>

{"Whether to close the dialog when the escape key is pressed"}

}, lazyMount: { "type": "boolean", "default": "false", description: <>

{"Whether to enable lazy mounting"}

}, unmountOnExit: { "type": "boolean", "default": "false", description: <>

{"Whether to unmount on exit."}

}, open: { "type": "boolean", "default": undefined }, defaultOpen: { "type": "boolean", "default": undefined }, onOpenChange: { "type": "((open: boolean) => void)", "default": undefined } }} /> ## Examples ### Responsive Wrapping `` 컴포넌트를 사용해 버튼 컨텐츠가 길어지는 경우 레이아웃을 세로로 접을 수 있습니다. ```tsx import { PrefixIcon, ResponsivePair } from "@seed-design/react"; import { IconCheckFill } from "@seed-design/react-icon"; import { ActionButton } from "seed-design/ui/action-button"; import { AlertDialogAction, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogRoot, AlertDialogTitle, AlertDialogTrigger, } from "seed-design/ui/alert-dialog"; const AlertDialogWrap = () => { return ( // You can set z-index dialog with "--layer-index" custom property. useful for stackflow integration. 열기 Wrapping ResponsivePair 컴포넌트를 사용해 버튼 컨텐츠가 길어지는 경우 레이아웃을 세로로 접을 수 있습니다. 취소 } />긴 레이블 예시 ); }; export default AlertDialogWrap; ``` ### Single Action ```tsx import { ActionButton } from "seed-design/ui/action-button"; import { AlertDialogAction, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogRoot, AlertDialogTitle, AlertDialogTrigger, } from "seed-design/ui/alert-dialog"; const AlertDialogSingle = () => { // You can set z-index dialog with "--layer-index" custom property. useful for stackflow integration. return ( 열기 제목 단일 선택지를 제공합니다. 확인 ); }; export default AlertDialogSingle; ``` ### Neutral Secondary Action ```tsx import { ResponsivePair } from "@seed-design/react"; import { ActionButton } from "seed-design/ui/action-button"; import { AlertDialogAction, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogRoot, AlertDialogTitle, AlertDialogTrigger, } from "seed-design/ui/alert-dialog"; const AlertDialogNeutral = () => { return ( // You can set z-index dialog with "--layer-index" custom property. useful for stackflow integration. 열기 제목 중립적인 선택지를 제공합니다. {/* ResponsivePair component wraps layout if button content is too long. */} 취소 확인 ); }; export default AlertDialogNeutral; ``` ### Critical Action ```tsx import { ResponsivePair } from "@seed-design/react"; import { ActionButton } from "seed-design/ui/action-button"; import { AlertDialogAction, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogRoot, AlertDialogTitle, AlertDialogTrigger, } from "seed-design/ui/alert-dialog"; const AlertDialogCritical = () => { return ( // You can set z-index dialog with "--layer-index" custom property. useful for stackflow integration. 열기 제목 파괴적, 비가역적 작업을 경고합니다. {/* ResponsivePair component wraps layout if button content is too long. */} 취소 확인 ); }; export default AlertDialogCritical; ``` ### Stackflow ```tsx import { useActivity } from "@stackflow/react"; import { ActivityComponentType, useFlow } from "@stackflow/react/future"; import { AlertDialogAction, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogRoot, AlertDialogTitle, } from "seed-design/ui/alert-dialog"; declare module "@stackflow/config" { interface Register { "alert-dialog-stackflow": unknown; } } const AlertDialogStackflow: ActivityComponentType<"alert-dialog-stackflow"> = () => { const activity = useActivity(); const { pop } = useFlow(); return ( !open && pop()}> 제목 Stackflow 확인 ); }; export default AlertDialogStackflow; ``` file: ./content/react/components/avatar.mdx # Avatar Avatar는 사용자, 조직과 같은 고유한 아이덴티티를 표현하는 컴포넌트입니다. ```tsx import { Flex } from "@seed-design/react"; import { Avatar, AvatarBadge } from "seed-design/ui/avatar"; import { IdentityPlaceholder } from "seed-design/ui/identity-placeholder"; export default function AvatarPreview() { return ( } >
} /> ); } ``` ## Installation ## Props void)", "default": undefined }, asChild: { "type": "boolean", "default": "false", description: <>

{"Whether the element should be rendered as a child of a slot."}

} }} /> ## Examples ### Size ```tsx import { Flex } from "@seed-design/react"; import { Avatar } from "seed-design/ui/avatar"; export default function AvatarSize() { return ( ); } ``` ### Badge (Circle) ```tsx import { IdentityPlaceholder } from "seed-design/ui/identity-placeholder"; import { Avatar, AvatarBadge } from "seed-design/ui/avatar"; import { Box } from "@seed-design/react"; export default function AvatarBadgeCircle() { return ( } > ); } ``` ### Badge (Flower) ```tsx import { IdentityPlaceholder } from "seed-design/ui/identity-placeholder"; import { Avatar, AvatarBadge } from "seed-design/ui/avatar"; export default function AvatarBadgeFlower() { return ( } > 뱃지를 설명하는 대체 텍스트를 제공해야 합니다. ); } ``` ### Badge (Shield) ```tsx import { Avatar, AvatarBadge } from "seed-design/ui/avatar"; import { IdentityPlaceholder } from "seed-design/ui/identity-placeholder"; export default function AvatarBadgeShield() { return ( } > 뱃지를 설명하는 대체 텍스트를 제공해야 합니다. ); } ``` ### Stack ```tsx import { Avatar, AvatarStack } from "seed-design/ui/avatar"; import { IdentityPlaceholder } from "seed-design/ui/identity-placeholder"; export default function AvatarStackExample() { return ( } /> } /> } /> } /> ); } ``` file: ./content/react/components/badge.mdx # Badge Badge는 객체의 속성이나 상태를 시각적으로 표현하는 작은 텍스트 라벨입니다. 사용자의 주의를 끌고 콘텐츠의 빠른 인지와 탐색을 돕기 위해 사용됩니다. ```tsx import { Badge } from "@seed-design/react"; export default function BadgePreview() { return 라벨; } ``` ## Usage ```tsx import { Badge } from "@seed-design/react"; ``` ```tsx Badge ``` ## Props

{"Whether the element should be rendered as a child of a slot."}

} }} /> ## Examples ### Medium ```tsx import { Badge } from "@seed-design/react"; export default function BadgeMedium() { return 라벨; } ``` ### Large ```tsx import { Badge } from "@seed-design/react"; export default function BadgeLarge() { return 라벨; } ``` ### Weak ```tsx import { Badge } from "@seed-design/react"; export default function BadgeWeak() { return 라벨; } ``` ### Solid ```tsx import { Badge } from "@seed-design/react"; export default function BadgeSolid() { return 라벨; } ``` ### Outline ```tsx import { Badge } from "@seed-design/react"; export default function BadgeOutline() { return 라벨; } ``` ### Neutral ```tsx import { Badge } from "@seed-design/react"; export default function BadgeNeutral() { return 라벨; } ``` ### Brand ```tsx import { Badge } from "@seed-design/react"; export default function BadgeBrand() { return 라벨; } ``` ### Informative ```tsx import { Badge } from "@seed-design/react"; export default function BadgeInformative() { return 라벨; } ``` ### Positive ```tsx import { Badge } from "@seed-design/react"; export default function BadgePositive() { return 라벨; } ``` ### Critical ```tsx import { Badge } from "@seed-design/react"; export default function BadgeCritical() { return 라벨; } ``` ### asChild ```tsx import { Badge } from "@seed-design/react"; export default function BadgeAsChild() { return ( 링크 ); } ``` file: ./content/react/components/bottom-sheet.mdx # Bottom Sheet 이 문서는 정리 중이에요. 문의 내용은 #_design_core 채널을 찾아주세요. ```tsx import { ActionButton } from "seed-design/ui/action-button"; import { BottomSheetBody, BottomSheetContent, BottomSheetFooter, BottomSheetRoot, BottomSheetTrigger, } from "seed-design/ui/bottom-sheet"; const BottomSheetPreview = () => { return ( Open {/* If you need to omit padding, pass px={0}. */} Content 확인 ); }; export default BottomSheetPreview; ``` ## Installation ## Props

{"The role of the dialog."}

}, closeOnInteractOutside: { "type": "boolean", "default": "true", description: <>

{"Whether to close the dialog when the outside is clicked"}

}, closeOnEscape: { "type": "boolean", "default": "true", description: <>

{"Whether to close the dialog when the escape key is pressed"}

}, lazyMount: { "type": "boolean", "default": "false", description: <>

{"Whether to enable lazy mounting"}

}, unmountOnExit: { "type": "boolean", "default": "false", description: <>

{"Whether to unmount on exit."}

}, open: { "type": "boolean", "default": undefined }, defaultOpen: { "type": "boolean", "default": undefined }, onOpenChange: { "type": "((open: boolean) => void)", "default": undefined } }} /> file: ./content/react/components/callout.mdx # Callout 사용자의 주목을 끌어 중요한 정보를 강조하는 컴포넌트에요. ```tsx import { VStack } from "@seed-design/react"; import { ActionableCallout, Callout, DismissibleCallout } from "seed-design/ui/callout"; export default function CalloutPreview() { return ( ); } ``` ## Installation ## Props ### `Callout` ### `ActionableCallout` ### `DismissibleCallout` void)", "default": undefined } }} /> ## Examples ### Content Layout #### Text Only ```tsx import { VStack } from "@seed-design/react"; import { ActionableCallout, Callout, DismissibleCallout } from "seed-design/ui/callout"; export default function CalloutTextOnly() { return ( ); } ``` #### With Icon `icon` prop은 `Callout`에서만 제공돼요. ```tsx import { IconCalendarFill } from "@karrotmarket/react-monochrome-icon"; import { Callout } from "seed-design/ui/callout"; export default function CalloutWithIcon() { return ( } description="기능에 대한 안내 또는 유익한 내용을 전달해요. 콜아웃은 꼭 필요한 경우에만 절제하여 사용해요." /> ); } ``` #### With Title Text ```tsx import { VStack } from "@seed-design/react"; import { ActionableCallout, Callout, DismissibleCallout } from "seed-design/ui/callout"; export default function CalloutWithTitleText() { return ( ); } ``` #### With Link Label `linkProps` prop은 `Callout`과 `DismissibleCallout`에서만 제공돼요. ```tsx import { VStack } from "@seed-design/react"; import { Callout, DismissibleCallout } from "seed-design/ui/callout"; export default function CalloutWithLinkLabel() { return ( ); } ``` #### With All ```tsx import { IconCalendarFill } from "@karrotmarket/react-monochrome-icon"; import { Callout } from "seed-design/ui/callout"; export default function CalloutWithAll() { return ( } description="기능에 대한 안내 또는 유익한 내용을 전달해요. 콜아웃은 꼭 필요한 경우에만 절제하여 사용해요." linkProps={{ children: "시도해 보기" }} /> ); } ``` ### Customizable Parts #### Rendering Link Label as Child ```tsx import { VStack } from "@seed-design/react"; import { Callout, DismissibleCallout } from "seed-design/ui/callout"; export default function CalloutLinkLabelAsChild() { return ( 시도해 보기 ), }} /> 시도해 보기 ), }} /> ); } ``` ### Tones #### Neutral (Default) ```tsx import { VStack } from "@seed-design/react"; import { ActionableCallout, Callout, DismissibleCallout } from "seed-design/ui/callout"; export default function CalloutNeutral() { return ( ); } ``` #### Informative ```tsx import { VStack } from "@seed-design/react"; import { ActionableCallout, Callout, DismissibleCallout } from "seed-design/ui/callout"; export default function CalloutInformative() { return ( ); } ``` #### Warning ```tsx import { VStack } from "@seed-design/react"; import { ActionableCallout, Callout, DismissibleCallout } from "seed-design/ui/callout"; export default function CalloutWarning() { return ( ); } ``` #### Critical ```tsx import { VStack } from "@seed-design/react"; import { ActionableCallout, Callout, DismissibleCallout } from "seed-design/ui/callout"; export default function CalloutCritical() { return ( ); } ``` #### Magic ```tsx import { VStack } from "@seed-design/react"; import { ActionableCallout, Callout, DismissibleCallout } from "seed-design/ui/callout"; export default function CalloutMagic() { return ( ); } ``` file: ./content/react/components/checkbox.mdx # Checkbox 이 문서는 정리 중이에요. 문의 내용은 #_design_core 채널을 찾아주세요. ```tsx import { Checkbox } from "seed-design/ui/checkbox"; export default function CheckboxPreview() { return ; } ``` ## Installation ## Props ", "default": undefined }, rootRef: { "type": "Ref", "default": undefined }, label: { "type": "ReactNode", "default": undefined }, weight: { "type": "\"default\" | \"stronger\"", "default": "default" }, variant: { "type": "\"square\" | \"ghost\"", "default": "square" }, size: { "type": "\"large\" | \"medium\"", "default": "medium" }, disabled: { "type": "boolean", "default": undefined }, invalid: { "type": "boolean", "default": undefined }, required: { "type": "boolean", "default": undefined }, checked: { "type": "boolean", "default": undefined }, defaultChecked: { "type": "boolean", "default": undefined }, onCheckedChange: { "type": "((checked: boolean) => void)", "default": undefined }, indeterminate: { "type": "boolean", "default": undefined }, asChild: { "type": "boolean", "default": "false", description: <>

{"Whether the element should be rendered as a child of a slot."}

} }} /> ## Examples ### Size ```tsx import { Checkbox } from "seed-design/ui/checkbox"; export default function CheckboxSize() { return (
); } ```
### Variant ```tsx import { Checkbox } from "seed-design/ui/checkbox"; export default function CheckboxVariant() { return (
); } ```
### Indeterminate ```tsx import { Checkbox } from "seed-design/ui/checkbox"; export default function CheckboxIndeterminate() { return ; } ``` ### Weight=stronger ```tsx import { Checkbox } from "seed-design/ui/checkbox"; export default function CheckboxStronger() { return ; } ``` ### Long Text ```tsx import { Checkbox } from "seed-design/ui/checkbox"; export default function CheckboxLongText() { return (
); } ```
### Disabled ```tsx import { Checkbox } from "seed-design/ui/checkbox"; export default function CheckboxDisabled() { return (
); } ```
### Use Cases #### React Hook Form ```tsx import { HStack, VStack } from "@seed-design/react"; import { useCallback, type FormEvent } from "react"; import { useController, useForm } from "react-hook-form"; import { ActionButton } from "seed-design/ui/action-button"; import { Checkbox } from "seed-design/ui/checkbox"; const POSSIBLE_FRUIT_VALUES = ["apple", "melon", "mango"] as const; type FormValues = Record<(typeof POSSIBLE_FRUIT_VALUES)[number], boolean>; export default function CheckboxReactHookForm() { const { handleSubmit, reset, setValue, control } = useForm({ defaultValues: { apple: false, melon: true, mango: false, }, }); const onValid = useCallback((data: FormValues) => { window.alert(JSON.stringify(data, null, 2)); }, []); const onReset = useCallback( (event: FormEvent) => { event.preventDefault(); reset(); }, [reset], ); return ( {POSSIBLE_FRUIT_VALUES.map((name) => { const { field: { value, ...restProps }, fieldState: { invalid }, } = useController({ name, control }); return ( ); })} 초기화 setValue("mango", true)} > mango 선택 제출 ); } ``` file: ./content/react/components/control-chip.mdx # Control Chip Control Chip은 사용자가 선택, 필터링, 전환과 같은 제어 작업을 수행할 수 있도록 돕는 Pill 형태의 컴포넌트입니다. ```tsx import { ControlChip } from "seed-design/ui/control-chip"; export default function ControlChipPreview() { return 라벨; } ``` ## Installation ## Props ### ControlChip.Button

{"Whether the element should be rendered as a child of a slot."}

}, size: { "type": "\"medium\" | \"small\"", "default": "medium" }, layout: { "type": "\"withText\" | \"iconOnly\"", "default": "withText" } }} /> ### ControlChip.Toggle ", "default": undefined }, rootRef: { "type": "Ref", "default": undefined }, asChild: { "type": "boolean", "default": "false", description: <>

{"Whether the element should be rendered as a child of a slot."}

}, size: { "type": "\"medium\" | \"small\"", "default": "medium" }, layout: { "type": "\"withText\" | \"iconOnly\"", "default": "withText" }, disabled: { "type": "boolean", "default": undefined }, invalid: { "type": "boolean", "default": undefined }, required: { "type": "boolean", "default": undefined }, checked: { "type": "boolean", "default": undefined }, defaultChecked: { "type": "boolean", "default": undefined }, onCheckedChange: { "type": "((checked: boolean) => void)", "default": undefined }, indeterminate: { "type": "boolean", "default": undefined } }} /> ### ControlChip.RadioRoot void)", "default": undefined }, asChild: { "type": "boolean", "default": "false", description: <>

{"Whether the element should be rendered as a child of a slot."}

} }} /> ### ControlChip.RadioItem ", "default": undefined }, rootRef: { "type": "Ref", "default": undefined }, asChild: { "type": "boolean", "default": "false", description: <>

{"Whether the element should be rendered as a child of a slot."}

}, size: { "type": "\"medium\" | \"small\"", "default": "medium" }, layout: { "type": "\"withText\" | \"iconOnly\"", "default": "withText" }, value: { "type": "string", "default": undefined }, disabled: { "type": "boolean", "default": undefined }, invalid: { "type": "boolean", "default": undefined } }} /> ## Examples ### Medium ```tsx import { ControlChip } from "seed-design/ui/control-chip"; export default function ActionChipMedium() { return 라벨; } ``` ### Small ```tsx import { ControlChip } from "seed-design/ui/control-chip"; export default function ActionChipSmall() { return 라벨; } ``` ### Icon Only ```tsx import { IconPlusFill } from "@karrotmarket/react-monochrome-icon"; import { Icon } from "@seed-design/react"; import { ControlChip } from "seed-design/ui/control-chip"; export default function ControlChipIconOnly() { return ( } /> ); } ``` ### Prefix Icon ```tsx import { IconPlusFill } from "@karrotmarket/react-monochrome-icon"; import { PrefixIcon } from "@seed-design/react"; import { ControlChip } from "seed-design/ui/control-chip"; export default function ControlChipPrefixIcon() { return ( } /> 라벨 ); } ``` ### Suffix Icon ```tsx import { IconChevronDownFill } from "@karrotmarket/react-monochrome-icon"; import { SuffixIcon } from "@seed-design/react"; import { ControlChip } from "seed-design/ui/control-chip"; export default function ControlChipSuffixIcon() { return ( 라벨 } /> ); } ``` file: ./content/react/components/divider.mdx # Divider Divider는 구분선을 표시하는 컴포넌트입니다. ```tsx import { Box, Divider, VStack } from "@seed-design/react"; export default function DividerPreview() { return ( ); } ``` ## Usage ```tsx import { Divider } from "@seed-design/react"; ``` ```tsx ``` ## Props file: ./content/react/components/error-state.mdx # Error State 사용자에게 오류 혹은 조회 결과가 없음을 알리는 컴포넌트입니다. ```tsx import { VStack } from "@seed-design/react"; import { ErrorState } from "seed-design/ui/error-state"; export default function ErrorStatePreview() { return ( ); } ``` ## Installation ## Props ", "default": undefined }, variant: { "type": "\"default\" | \"basement\"", "default": "\"default\"" } }} /> ## Examples ### Basement layer-basement 배경 위에서는 basement variant를 사용합니다. ```tsx import { VStack } from "@seed-design/react"; import { ErrorState } from "seed-design/ui/error-state"; export default function ErrorStateBasement() { return ( ); } ``` file: ./content/react/components/extended-action-sheet.mdx # Extended Action Sheet Extended Action Sheet는 사용자가 특정 작업에 관한 선택지뿐만 아니라 추가적인 선택지를 제공할 때 사용하는 시트 형태의 컴포넌트입니다. ```tsx import { IconEyeSlashLine } from "@karrotmarket/react-monochrome-icon"; import { PrefixIcon } from "@seed-design/react"; import { ActionButton } from "seed-design/ui/action-button"; import { ExtendedActionSheetContent, ExtendedActionSheetGroup, ExtendedActionSheetItem, ExtendedActionSheetRoot, ExtendedActionSheetTrigger, } from "seed-design/ui/extended-action-sheet"; const ExtendedActionSheetPreview = () => { return ( Open } /> Action 1 } /> Action 2 } /> Action 3 } /> Action 4 } /> Action 5 ); }; export default ExtendedActionSheetPreview; ``` ## Installation ## Props ### `ExtendedActionSheetRoot`

{"The role of the dialog."}

}, closeOnInteractOutside: { "type": "boolean", "default": "true", description: <>

{"Whether to close the dialog when the outside is clicked"}

}, closeOnEscape: { "type": "boolean", "default": "true", description: <>

{"Whether to close the dialog when the escape key is pressed"}

}, lazyMount: { "type": "boolean", "default": "false", description: <>

{"Whether to enable lazy mounting"}

}, unmountOnExit: { "type": "boolean", "default": "false", description: <>

{"Whether to unmount on exit."}

}, open: { "type": "boolean", "default": undefined }, defaultOpen: { "type": "boolean", "default": undefined }, onOpenChange: { "type": "((open: boolean) => void)", "default": undefined } }} /> ### `ExtendedActionSheetContent`

{"Whether the element should be rendered as a child of a slot."}

} }} /> ### `ExtendedActionSheetItem`

{"Whether the element should be rendered as a child of a slot."}

}, tone: { "type": "\"neutral\" | \"critical\"", "default": "neutral" } }} /> file: ./content/react/components/extended-fab.mdx # Extended FAB 이 문서는 정리 중이에요. 문의 내용은 #_design_core 채널을 찾아주세요. ```tsx import { IconBellFill } from "@karrotmarket/react-monochrome-icon"; import { ExtendedFab, PrefixIcon } from "@seed-design/react"; export default function ExtendedFabPreview() { return ( } /> 알림 설정 ); } ``` ## Usage ```tsx import { ExtendedFab, PrefixIcon } from "@seed-design/react"; ``` ```tsx } /> 라벨 ``` ## Props

{"Whether the element should be rendered as a child of a slot."}

} }} /> ## Examples ### Medium ```tsx import { IconBellFill } from "@karrotmarket/react-monochrome-icon"; import { ExtendedFab, PrefixIcon } from "@seed-design/react"; export default function ExtendedFabMedium() { return ( } /> 알림 설정 ); } ``` ### Small ```tsx import { IconBellFill } from "@karrotmarket/react-monochrome-icon"; import { ExtendedFab, PrefixIcon } from "@seed-design/react"; export default function ExtendedFabSmall() { return ( } /> 알림 설정 ); } ``` ### Neutral Solid ```tsx import { IconBellFill } from "@karrotmarket/react-monochrome-icon"; import { ExtendedFab, PrefixIcon } from "@seed-design/react"; export default function ExtendedFabNeutralSolid() { return ( } /> 알림 설정 ); } ``` ### Layer Floating ```tsx import { IconBellFill } from "@karrotmarket/react-monochrome-icon"; import { ExtendedFab, PrefixIcon } from "@seed-design/react"; export default function ExtendedFabLayerFloating() { return ( } /> 알림 설정 ); } ``` file: ./content/react/components/fab.mdx # FAB 이 문서는 정리 중이에요. 문의 내용은 #_design_core 채널을 찾아주세요. ```tsx import IconPlusLine from "@karrotmarket/react-monochrome-icon/IconPlusLine"; import { Fab, Icon } from "@seed-design/react"; export default function FabPreview() { return ( } /> ); } ``` ## Usage ```tsx import { Fab, Icon } from "@seed-design/react"; import { IconPlusLine } from "@karrotmarket/react-monochrome-icon"; ``` ```tsx } /> ``` ## Props

{"Whether the element should be rendered as a child of a slot."}

} }} /> file: ./content/react/components/help-bubble.mdx # Help Bubble Help Bubble은 사용자에게 컴포넌트의 상태나 특정 기능에 대한 추가 정보를 제공하는 부가적인 도움말 컴포넌트입니다. ```tsx import { ActionButton } from "seed-design/ui/action-button"; import { HelpBubbleTrigger } from "seed-design/ui/help-bubble"; export default function HelpBubblePreview() { return ( 열기 ); } ``` ## Installation ## Props

{"Whether the floating element is initially open"}

}, open: { "type": "boolean", "default": undefined, description: <>

{"Whether the floating element is open"}

}, onOpenChange: { "type": "((open: boolean) => void)", "default": undefined, description: <>

{"Callback when the floating element is opened or closed"}

}, strategy: { "type": "\"absolute\" | \"fixed\"", "default": "\"absolute\"", description: <>

{"The strategy to use for positioning"}

}, placement: { "type": "Placement", "default": "\"bottom\"", description: <>

{"The initial placement of the floating element"}

}, gutter: { "type": "number", "default": undefined, description: <>

{"The gutter between the floating element and the reference element"}

}, flip: { "type": "boolean | Placement[]", "default": "true", description: <>

{"Whether to flip the placement"}

}, slide: { "type": "boolean", "default": "true", description: <>

{"Whether the popover should slide when it overflows."}

}, overflowPadding: { "type": "number", "default": "8", description: <>

{"The virtual padding around the viewport edges to check for overflow"}

}, arrowPadding: { "type": "number", "default": "4", description: <>

{"The minimum padding between the arrow and the floating element's corner."}

} }} /> ## Examples ### Anchor ```tsx import { Avatar } from "seed-design/ui/avatar"; import { HelpBubbleAnchor } from "seed-design/ui/help-bubble"; export default function HelpBubbleAnchorExample() { return ( ); } ``` ### Placement ```tsx import { ActionButton } from "seed-design/ui/action-button"; import { HelpBubbleTrigger } from "seed-design/ui/help-bubble"; export default function HelpBubblePreview() { return ( 열기 ); } ``` ### Flip ```tsx import { ActionButton } from "seed-design/ui/action-button"; import { HelpBubbleTrigger } from "seed-design/ui/help-bubble"; export default function HelpBubbleFlip() { return ( 열기 ); } ``` ### Close Button ```tsx import { ActionButton } from "seed-design/ui/action-button"; import { HelpBubbleTrigger } from "seed-design/ui/help-bubble"; export default function HelpBubbleCloseButton() { return ( 열기 ); } ``` ### Title Only ```tsx import { ActionButton } from "seed-design/ui/action-button"; import { HelpBubbleTrigger } from "seed-design/ui/help-bubble"; export default function HelpBubbleTitleOnly() { return ( 열기 ); } ``` file: ./content/react/components/identity-placeholder.mdx # Identity Placeholder 이 문서는 정리 중이에요. 문의 내용은 #_design_core 채널을 찾아주세요. ```tsx import { IdentityPlaceholder } from "seed-design/ui/identity-placeholder"; export default function IdentityPlaceholderPreview() { return ; } ``` ## Installation ## Props

{"Whether the element should be rendered as a child of a slot."}

} }} /> file: ./content/react/components/inline-banner.mdx # Inline Banner 사용자가 꼭 알아야 하는 경고 메시지나 현재 상태를 전달하는 컴포넌트에요. ```tsx import { VStack } from "@seed-design/react"; import { ActionableInlineBanner, DismissibleInlineBanner, InlineBanner, } from "seed-design/ui/inline-banner"; export default function InlineBannerPreview() { return ( ); } ``` ## Installation ## Props ### `InlineBanner` ### `ActionableInlineBanner` ### `DismissibleInlineBanner` void)", "default": undefined } }} /> ## Examples ### Content Layout #### With Link Label `linkProps` prop은 `InlineBanner`에서만 제공돼요. ```tsx import { InlineBanner } from "seed-design/ui/inline-banner"; export default function InlineBannerWithLinkLabel() { return ( ); } ``` #### Text Only ```tsx import { VStack } from "@seed-design/react"; import { ActionableInlineBanner, DismissibleInlineBanner, InlineBanner, } from "seed-design/ui/inline-banner"; export default function InlineBannerTextOnly() { return ( ); } ``` #### With Icon ```tsx import { IconBellFill } from "@karrotmarket/react-monochrome-icon"; import { VStack } from "@seed-design/react"; import { ActionableInlineBanner, DismissibleInlineBanner, InlineBanner, } from "seed-design/ui/inline-banner"; export default function InlineBannerWithIcon() { return ( } description="사업자 정보를 등록해주세요." /> } description="사업자 정보를 등록해주세요." /> } description="사업자 정보를 등록해주세요." /> ); } ``` #### With Title Text ```tsx import { VStack } from "@seed-design/react"; import { ActionableInlineBanner, DismissibleInlineBanner, InlineBanner, } from "seed-design/ui/inline-banner"; export default function InlineBannerWithTitleText() { return ( ); } ``` #### With All ```tsx import { IconBellFill } from "@karrotmarket/react-monochrome-icon"; import { VStack } from "@seed-design/react"; import { ActionableInlineBanner, DismissibleInlineBanner, InlineBanner, } from "seed-design/ui/inline-banner"; export default function InlineBannerWithAll() { return ( } title="타이틀" description="사업자 정보를 등록해주세요." /> } title="타이틀" description="사업자 정보를 등록해주세요." /> } title="타이틀" description="사업자 정보를 등록해주세요." /> ); } ``` ### Customizable Parts #### Rendering `LinkInlineBanner`’s Link Label as Child ```tsx import { InlineBanner } from "seed-design/ui/inline-banner"; export default function InlineBannerLinkLabelAsChild() { return ( 자세히 보기 ), }} /> ); } ``` ### Variants #### Neutral Weak (Default) ```tsx import { IconBellFill } from "@karrotmarket/react-monochrome-icon"; import { VStack } from "@seed-design/react"; import { ActionableInlineBanner, DismissibleInlineBanner, InlineBanner, } from "seed-design/ui/inline-banner"; export default function InlineBannerNeutralWeak() { return ( } description="사업자 정보를 등록해주세요." /> } description="사업자 정보를 등록해주세요." /> } description="사업자 정보를 등록해주세요." /> ); } ``` #### Positive Weak ```tsx import { IconCheckmarkCircleFill } from "@karrotmarket/react-monochrome-icon"; import { VStack } from "@seed-design/react"; import { ActionableInlineBanner, DismissibleInlineBanner, InlineBanner, } from "seed-design/ui/inline-banner"; export default function InlineBannerPositiveWeak() { return ( } description="사업자 정보를 등록해주세요." /> } description="사업자 정보를 등록해주세요." /> } description="사업자 정보를 등록해주세요." /> ); } ``` #### Informative Weak ```tsx import { IconILowercaseSerifCircleFill } from "@karrotmarket/react-monochrome-icon"; import { VStack } from "@seed-design/react"; import { ActionableInlineBanner, DismissibleInlineBanner, InlineBanner, } from "seed-design/ui/inline-banner"; export default function InlineBannerInformativeWeak() { return ( } description="사업자 정보를 등록해주세요." /> } description="사업자 정보를 등록해주세요." /> } description="사업자 정보를 등록해주세요." /> ); } ``` #### Warning Weak ```tsx import { IconExclamationmarkCircleFill } from "@karrotmarket/react-monochrome-icon"; import { VStack } from "@seed-design/react"; import { ActionableInlineBanner, DismissibleInlineBanner, InlineBanner, } from "seed-design/ui/inline-banner"; export default function InlineBannerWarningWeak() { return ( } description="사업자 정보를 등록해주세요." /> } description="사업자 정보를 등록해주세요." /> } description="사업자 정보를 등록해주세요." /> ); } ``` #### Warning Solid ```tsx import { IconExclamationmarkCircleFill } from "@karrotmarket/react-monochrome-icon"; import { VStack } from "@seed-design/react"; import { ActionableInlineBanner, DismissibleInlineBanner, InlineBanner, } from "seed-design/ui/inline-banner"; export default function InlineBannerWarningSolid() { return ( } description="사업자 정보를 등록해주세요." /> } description="사업자 정보를 등록해주세요." /> } description="사업자 정보를 등록해주세요." /> ); } ``` #### Critical Weak ```tsx import { IconExclamationmarkCircleFill } from "@karrotmarket/react-monochrome-icon"; import { VStack } from "@seed-design/react"; import { ActionableInlineBanner, InlineBanner } from "seed-design/ui/inline-banner"; export default function InlineBannerCriticalWeak() { return ( } description="사업자 정보를 등록해주세요." /> } description="사업자 정보를 등록해주세요." /> ); } ``` #### Critical Solid `criticalWeak`과 `criticalSolid` variant는 `InlineBanner`와 `ActionableInlineBanner`에서만 제공돼요. variant가 `criticalWeak`이나 `criticalSolid`인 경우 `position: sticky` 등을 활용하여 화면을 스크롤했을 때도 인라인 배너가 상단에 고정되도록 해 주세요. ```tsx import { ActionableInlineBanner, InlineBanner } from "seed-design/ui/inline-banner"; import { IconExclamationmarkCircleFill } from "@karrotmarket/react-monochrome-icon"; import { VStack } from "@seed-design/react"; export default function InlineBannerCriticalSolid() { return ( } description="사업자 정보를 등록해주세요." /> } description="사업자 정보를 등록해주세요." /> ); } ``` ```tsx import * as React from "react"; import { ActionButton } from "seed-design/ui/action-button"; import { InlineBanner, type InlineBannerProps } from "seed-design/ui/inline-banner"; import AppScreen from "@/components/stackflow/ActivityLayout"; import type { ActivityComponentType } from "@stackflow/react/future"; declare module "@stackflow/config" { interface Register { "inline-banner": unknown; } } const InlineBannerActivity: ActivityComponentType<"inline-banner"> = () => { const [variant, setVariant] = React.useState>( "criticalSolid", ); return (
setVariant((prev) => (prev === "criticalSolid" ? "neutralWeak" : "criticalSolid")) } > Toggle tone

Lorem ipsum dolor sit, amet consectetur adipisicing elit. At a eaque fugiat sint sapiente. Id, hic ex, blanditiis totam animi amet delectus temporibus quae fugiat magnam, quos eaque dolorum a? Lorem ipsum dolor, sit amet consectetur adipisicing elit. Possimus labore unde minus temporibus beatae commodi et nesciunt iure in dignissimos suscipit, alias ab voluptatem facilis tempora numquam. Veritatis, dolorum suscipit! Lorem ipsum dolor sit, amet consectetur adipisicing elit. Explicabo fugiat molestias iusto, ipsum distinctio officia ad id ratione esse ducimus architecto deleniti illum reiciendis rerum, at blanditiis molestiae. Cupiditate, nobis? Lorem ipsum dolor sit amet consectetur adipisicing elit. Ab, magni. Aliquid inventore quaerat nemo architecto harum earum quas porro repudiandae explicabo repellat repellendus magni, corporis omnis laborum, velit dicta blanditiis. Lorem ipsum dolor sit, amet consectetur adipisicing elit. Debitis, eveniet quas. Accusamus facere veritatis expedita delectus, asperiores numquam placeat necessitatibus assumenda, nesciunt in dolorem sit provident repellendus, voluptatem earum! Consequatur. Lorem ipsum dolor, sit amet consectetur adipisicing elit. Aut earum asperiores aliquam magnam est delectus veritatis numquam sint porro tenetur dolores nobis, deleniti voluptas quaerat, quia voluptatum soluta autem perspiciatis? Lorem ipsum dolor sit amet consectetur adipisicing elit. Facilis possimus eaque aliquam maxime? Quidem enim, sed itaque at veritatis nihil officia esse qui provident ipsa adipisci necessitatibus officiis distinctio laborum!

); }; export default InlineBannerActivity; ```
file: ./content/react/components/link-content.mdx # Link Content 이 문서는 정리 중이에요. 문의 내용은 #_design_core 채널을 찾아주세요. ```tsx import { IconChevronRightLine } from "@karrotmarket/react-monochrome-icon"; import { LinkContent, SuffixIcon } from "@seed-design/react"; export default function LinkContentPreview() { return ( 새 글 } /> ); } ``` ## Usage ```tsx import { LinkContent, SuffixIcon } from "@seed-design/react"; import { IconChevronRightLine } from "@karrotmarket/react-monochrome-icon"; ``` ```tsx Label } /> ``` ## Props

{"Whether the element should be rendered as a child of a slot."}

}, color: { "type": "ScopedColorFg | ScopedColorPalette | (string & {})", "default": undefined } }} /> ## Examples ### Size ```tsx import { IconChevronRightLine } from "@karrotmarket/react-monochrome-icon"; import { LinkContent, SuffixIcon, VStack } from "@seed-design/react"; export default function LinkContentSize() { return ( 추가 } /> 추가 } /> 추가 } /> ); } ``` ### Color ```tsx import { IconChevronRightLine } from "@karrotmarket/react-monochrome-icon"; import { LinkContent, VStack, SuffixIcon } from "@seed-design/react"; export default function LinkContentColor() { return ( 더보기 } /> 더보기 } /> 더보기 } /> 더보기 } /> ); } ``` file: ./content/react/components/manner-temp-badge.mdx # Manner Temp Badge 이 문서는 정리 중이에요. 문의 내용은 #_design_core 채널을 찾아주세요. ```tsx import { VStack } from "@seed-design/react"; import { MannerTempBadge } from "seed-design/ui/manner-temp-badge"; export default function BadgePreview() { return ( ); } ``` ## Installation ## Props

{"The manner temperature of the badge.\nLevel will be calculated based on this value.\nIf level is provided, this will be ignored."}

}, level: { "type": "\"l1\" | \"l2\" | \"l3\" | \"l4\" | \"l5\" | \"l6\"", "default": "l1" } }} /> file: ./content/react/components/manner-temp.mdx # Manner Temp 이 문서는 정리 중이에요. 문의 내용은 #_design_core 채널을 찾아주세요. ```tsx import { VStack } from "@seed-design/react"; import { MannerTemp } from "seed-design/ui/manner-temp"; export default function MannerTempPreview() { return ( ); } ``` ## Installation ## Props

{"The manner temperature of the MannerTemp component.\nLevel will be calculated based on this value.\nIf level is provided, this will be ignored."}

}, level: { "type": "\"l1\" | \"l2\" | \"l3\" | \"l4\" | \"l5\" | \"l6\"", "default": "l1" } }} /> file: ./content/react/components/progress-circle.mdx # Progress Circle 작업이 진행 중임을 알리거나 작업 시간을 시각적으로 나타내는 데 사용됩니다. ```tsx import { ProgressCircle } from "seed-design/ui/progress-circle"; export default function ProgressCirclePreview() { return ; } ``` ## Installation ## Props

{"The current value of the progress. if undefined, it will be indeterminate."}

}, minValue: { "type": "number", "default": "0", description: <>

{"The minimum value allowed of the progress."}

}, maxValue: { "type": "number", "default": "100", description: <>

{"The maximum value allowed of the progress."}

}, asChild: { "type": "boolean", "default": "false", description: <>

{"Whether the element should be rendered as a child of a slot."}

}, tone: { "type": "\"inherit\" | \"neutral\" | \"brand\" | \"staticWhite\"", "default": "neutral" }, size: { "type": "\"inherit\" | \"24\" | \"40\"", "default": "40" } }} /> ## Examples ### Neutral ```tsx import { ProgressCircle } from "seed-design/ui/progress-circle"; export default function ProgressCircleNeutral() { return ; } ``` ### Brand ```tsx import { ProgressCircle } from "seed-design/ui/progress-circle"; export default function ProgressCircleBrand() { return ; } ``` ### Static White ```tsx import { ProgressCircle } from "seed-design/ui/progress-circle"; export default function ProgressCircleStaticWhite() { return (
); } ```
### Size=40 ```tsx import { ProgressCircle } from "seed-design/ui/progress-circle"; export default function ProgressCircle40() { return ; } ``` ### Size=24 ```tsx import { ProgressCircle } from "seed-design/ui/progress-circle"; export default function ProgressCircle24() { return ; } ``` ### Determinate ```tsx import { ProgressCircle } from "seed-design/ui/progress-circle"; export default function ProgressCircleDeterminate() { return ; } ``` ### Indeterminate ```tsx import { ProgressCircle } from "seed-design/ui/progress-circle"; export default function ProgressCirclePreview() { // if you want to show an indeterminate progress circle, you can pass `undefined` or omit the `value` prop return ; } ``` file: ./content/react/components/pull-to-refresh.mdx # Pull To Refresh 이 문서는 정리 중이에요. 문의 내용은 #_design_core 채널을 찾아주세요. ```tsx import { AppBar, AppScreen } from "@seed-design/stackflow"; import { ActivityComponentType } from "@stackflow/react/future"; import { VStack } from "@seed-design/react"; import { PullToRefreshContent, PullToRefreshIndicator, PullToRefreshRoot, } from "seed-design/ui/pull-to-refresh"; declare module "@stackflow/config" { interface Register { "pull-to-refresh-preview": unknown; } } const PullToRefreshPreview: ActivityComponentType<"pull-to-refresh-preview"> = () => { // AppScreen is imported from @seed-design/stackflow instead of snippet for demo purpose. // AppScreen snippet is integrating PullToRefresh, so it's not necessary to use it here. return ( Pull To Refresh {}} onPtrRefresh={async () => { await new Promise((resolve) => setTimeout(resolve, 1000)); }} > Lorem ipsum dolor sit amet consectetur adipisicing elit. Numquam autem deserunt reprehenderit ducimus sunt. Quod laudantium excepturi tempora fuga repellendus accusantium nam maiores? Quas debitis, neque ullam eligendi minus sit? ); }; export default PullToRefreshPreview; ``` ## Installation ## Props ### PullToRefreshRoot

{"The threshold value to trigger the refresh. (px)"}

}, displacementMultiplier: { "type": "number", "default": "0.5", description: <>

{"The multiplier to calculate displacement from the touch movement."}

}, onPtrPullStart: { "type": "((ctx: PullToRefreshContext) => void)", "default": undefined, description: <>

{"Callback when the pull-to-refresh has started to pull."}

}, onPtrPullMove: { "type": "((ctx: PullToRefreshContext) => void)", "default": undefined, description: <>

{"Callback when the pull-to-refresh is moving during the pull."}

}, onPtrPullEnd: { "type": "((ctx: PullToRefreshContext) => void)", "default": undefined, description: <>

{"Callback when the pull-to-refresh is released.\nIt does not matter if it is ready or not. If you want to handle the refresh, use "}{"onPtrRefresh"}{"."}

}, onPtrReady: { "type": "(() => void)", "default": undefined, description: <>

{"Callback when the pull-to-refresh is pulled over the threshold."}

}, onPtrRefresh: { "type": "(() => Promise)", "default": undefined, description: <>

{"Callback when the pull-to-refresh is released after ready."}

}, asChild: { "type": "boolean", "default": "false", description: <>

{"Whether the element should be rendered as a child of a slot."}

} }} /> ### PullToRefreshIndicator ### PullToRefreshContent

{"Whether the element should be rendered as a child of a slot."}

} }} /> ## Examples ### PTR in Tabs ```tsx import { VStack } from "@seed-design/react"; import { ActivityComponentType } from "@stackflow/react/future"; import { AppBar, AppBarMain } from "seed-design/ui/app-bar"; import { AppScreen, AppScreenContent } from "seed-design/ui/app-screen"; import { PullToRefreshContent, PullToRefreshIndicator, PullToRefreshRoot, } from "seed-design/ui/pull-to-refresh"; import { TabsContent, TabsList, TabsRoot, TabsTrigger } from "seed-design/ui/tabs"; declare module "@stackflow/config" { interface Register { "pull-to-refresh-tabs": unknown; } } const PullToRefreshTabs: ActivityComponentType<"pull-to-refresh-tabs"> = () => { return ( Pull To Refresh Tab 1 Tab 2 {}} onPtrRefresh={async () => { await new Promise((resolve) => setTimeout(resolve, 1000)); }} > Lorem ipsum dolor sit amet consectetur adipisicing elit. Numquam autem deserunt reprehenderit ducimus sunt. Quod laudantium excepturi tempora fuga repellendus accusantium nam maiores? Quas debitis, neque ullam eligendi minus sit? PTR is not available in this tab. ); }; export default PullToRefreshTabs; ``` file: ./content/react/components/reaction-button.mdx # Reaction Button 이 문서는 정리 중이에요. 문의 내용은 #_design_core 채널을 찾아주세요. ```tsx import { IconFaceSmileCircleFill } from "@karrotmarket/react-monochrome-icon"; import { Count, PrefixIcon } from "@seed-design/react"; import { ReactionButton } from "seed-design/ui/reaction-button"; export default function ReactionButtonPreview() { return ( } /> 도움돼요 1 ); } ``` ## Installation ## Props

{"버튼에 등록된 비동기 작업이 진행 중임을 사용자에게 알립니다."}

}, disabled: { "type": "boolean", "default": "false", description: <>

{"버튼의 비활성화 여부를 나타냅니다."}

}, pressed: { "type": "boolean", "default": undefined }, defaultPressed: { "type": "boolean", "default": undefined }, onPressedChange: { "type": "((pressed: boolean) => void)", "default": undefined }, asChild: { "type": "boolean", "default": "false", description: <>

{"Whether the element should be rendered as a child of a slot."}

} }} /> ## Examples ### Small ```tsx import { IconFaceSmileCircleFill } from "@karrotmarket/react-monochrome-icon"; import { Count, PrefixIcon } from "@seed-design/react"; import { ReactionButton } from "seed-design/ui/reaction-button"; export default function ReactionButtonSmall() { return ( } /> 도움돼요 1 ); } ``` ### Xsmall ```tsx import { IconFaceSmileCircleFill } from "@karrotmarket/react-monochrome-icon"; import { Count, PrefixIcon } from "@seed-design/react"; import { ReactionButton } from "seed-design/ui/reaction-button"; export default function ReactionButtonXsmall() { return ( } /> 도움돼요 1 ); } ``` ### Disabled ```tsx import { IconFaceSmileCircleFill } from "@karrotmarket/react-monochrome-icon"; import { PrefixIcon } from "@seed-design/react"; import { ReactionButton } from "seed-design/ui/reaction-button"; export default function ReactionButtonDisabled() { return ( } /> 비활성 ); } ``` ### Loading ```tsx import { IconFaceSmileCircleFill } from "@karrotmarket/react-monochrome-icon"; import { PrefixIcon } from "@seed-design/react"; import { useState } from "react"; import { ReactionButton } from "seed-design/ui/reaction-button"; export default function ReactionButtonLoading() { const [pressed, setPressed] = useState(false); const [loading, setLoading] = useState(false); function handleToggle() { setLoading(true); setTimeout(() => { setLoading(false); setPressed((prev) => !prev); }, 2000); } // 이벤트 핸들링이 필요할 수 있으므로 loading은 disabled를 포함하지 않습니다. 이벤트 발생을 원하지 않는 경우, disabled 속성을 추가해주세요. return ( } /> 시간이 걸리는 토글 ); } ``` file: ./content/react/components/segmented-control.mdx # Segmented Control 이 문서는 정리 중이에요. 문의 내용은 #_design_core 채널을 찾아주세요. ```tsx import { SegmentedControl, SegmentedControlItem } from "seed-design/ui/segmented-control"; export default function SegmentedControlPreview() { return ( Hot New ); } ``` ## Installation ## Props ### `SegmentedControl` `value`와 `defaultValue` 중 적어도 하나를 제공해야 해요. void)", "default": undefined }, asChild: { "type": "boolean", "default": "false", description: <>

{"Whether the element should be rendered as a child of a slot."}

} }} /> ### `SegmentedControlItem` ", "default": undefined }, rootRef: { "type": "Ref", "default": undefined }, children: { "type": "string", "default": undefined, description: <>

{"The label of the item.\nType is restricted to string for consistent width between font-weight changes.\nIf you need to render a React element, use each element separately."}

}, value: { "type": "string", "default": undefined }, disabled: { "type": "boolean", "default": undefined }, invalid: { "type": "boolean", "default": undefined }, asChild: { "type": "boolean", "default": "false", description: <>

{"Whether the element should be rendered as a child of a slot."}

} }} /> ## Examples ### Disabled ```tsx import { SegmentedControl, SegmentedControlItem } from "seed-design/ui/segmented-control"; export default function SegmentedControlPreview() { return ( Hot New ); } ``` ### Long Label Pill 형태의 `SegmentedControlItem` 한 개는 86px의 최소 너비를 가져요. 제공한 옵션 중 이 너비를 초과하는 옵션이 있다면, 가장 긴 옵션의 너비에 모든 옵션의 너비가 맞춰져요. ```tsx import { SegmentedControl, SegmentedControlItem } from "seed-design/ui/segmented-control"; export default function SegmentedControlLongLabel() { return ( 가격 높은 순 할인율 높은 순 인기 많은 순 ); } ``` ### Fixed Width `SegmentedControl`의 `style` prop에 `width`를 제공해서 직접 너비를 설정할 수 있어요. 직접 설정한 너비 안에서 모든 레이블을 overflow 없이 표시할 수 없는 경우, 직접 지정한 너비 대신 overflow 없이 표시할 수 있는 최소 너비로 자동 조정돼요. ```tsx import { SegmentedControl, SegmentedControlItem } from "seed-design/ui/segmented-control"; export default function SegmentedControlFixedWidth() { return ( New Hot ); } ``` ### Long Label & Fixed Width ```tsx import { SegmentedControl, SegmentedControlItem } from "seed-design/ui/segmented-control"; export default function SegmentedControlLongLabelFixedWidth() { return ( 가격 높은 순 할인율 높은 순 인기 많은 순 ); } ``` file: ./content/react/components/skeleton.mdx # Skeleton 이 문서는 정리 중이에요. 문의 내용은 #_design_core 채널을 찾아주세요. ```tsx import { Skeleton, VStack } from "@seed-design/react"; export default function SkeletonPreview() { return ( ); } ``` ## Usage ```tsx import { Skeleton } from "@seed-design/react"; ``` ```tsx ``` ## Props

{"Whether the element should be rendered as a child of a slot."}

}, height: { "type": "\"full\" | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\" | (string & {})", "default": undefined }, width: { "type": "\"full\" | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\" | (string & {})", "default": undefined } }} /> ## Examples ### Radius ```tsx import { Flex, Skeleton } from "@seed-design/react"; export default function SkeletonRadius() { return ( ); } ``` file: ./content/react/components/snackbar.mdx # Snackbar Snackbar는 사용자 액션의 결과나 프로세스의 결과를 알려주는 일시적인 알림 요소입니다. 화면 하단에 표시되며 자동으로 사라집니다. ```tsx import { ActionButton } from "seed-design/ui/action-button"; import { Snackbar, SnackbarProvider, useSnackbarAdapter } from "seed-design/ui/snackbar"; function Component() { const adapter = useSnackbarAdapter(); return ( adapter.create({ timeout: 5000, onClose: () => {}, render: () => {}} />, }) } > 실행 ); } export default function SnackbarPreview() { return ( ); } ``` ## Installation ## Props ### Snackbar

{"스낵바에 표시할 메시지"}

}, actionLabel: { "type": "string", "default": undefined, description: <>

{"스낵바에 표시할 액션 버튼의 라벨"}

}, onAction: { "type": "(() => void)", "default": undefined, description: <>

{"액션 버튼 클릭 시 호출되는 콜백"}

}, shouldCloseOnAction: { "type": "boolean", "default": "true", description: <>

{"액션 버튼 클릭 시 스낵바를 닫을지 여부"}

}, variant: { "type": "\"default\" | \"positive\" | \"critical\"", "default": "default" }, asChild: { "type": "boolean", "default": "false", description: <>

{"Whether the element should be rendered as a child of a slot."}

} }} /> ### SnackbarAdapter.create

{"The duration the snackbar will be visible"}

}, removeDelay: { "type": "number", "default": "200", description: <>

{"The duration for the snackbar to kept alive before it is removed.\nUseful for exit transitions."}

}, onClose: { "type": "(() => void)", "default": undefined, description: <>

{"Function called when the snackbar has been closed and removed"}

}, render: { "type": "() => ReactNode", "default": undefined, description: <>

{"The content to render in the snackbar region"}

} }} /> ## Examples ### Positive ```tsx import { ActionButton } from "seed-design/ui/action-button"; import { Snackbar, SnackbarProvider, useSnackbarAdapter } from "seed-design/ui/snackbar"; function Component() { const adapter = useSnackbarAdapter(); return ( adapter.create({ timeout: 5000, onClose: () => {}, render: () => ( {}} /> ), }) } > 실행 ); } export default function SnackbarPositive() { return ( ); } ``` ### Critical ```tsx import { ActionButton } from "seed-design/ui/action-button"; import { Snackbar, SnackbarProvider, useSnackbarAdapter } from "seed-design/ui/snackbar"; function Component() { const adapter = useSnackbarAdapter(); return ( adapter.create({ timeout: 50000000, onClose: () => {}, render: () => ( {}} /> ), }) } > 실행 ); } export default function SnackbarNegative() { return ( ); } ``` ### Avoid Overlap `` 컴포넌트를 사용하여 스낵바가 겹치지 않아야 하는 영역을 지정할 수 있습니다. ``의 자식 컴포넌트는 forwardRef(\~React 18) 혹은 ref prop(React 19\~)으로 ref를 전달받아야 합니다. offset은 다음 상황에서 갱신됩니다. * SnackbarAvoidOverlap의 자식 컴포넌트가 mount될 때 * SnackbarAvoidOverlap의 자식 컴포넌트가 unmount될 때 * SnackbarAvoidOverlap의 자식 컴포넌트의 높이가 변경될 때 * SnackbarRegion의 높이가 변경될 때 ```tsx import { Flex, VStack } from "@seed-design/react"; import { ActionButton } from "seed-design/ui/action-button"; import { Snackbar, SnackbarAvoidOverlap, SnackbarProvider, useSnackbarAdapter, } from "seed-design/ui/snackbar"; function Component() { const adapter = useSnackbarAdapter(); return ( adapter.create({ timeout: 5000, onClose: () => {}, render: () => {}} />, }) } > 실행 Snackbar가 이 영역과 겹치지 않게 조정됩니다. 스크롤은 무시합니다. ); } export default function SnackbarPreview() { return ( ); } ``` file: ./content/react/components/switch.mdx # Switch 이 문서는 정리 중이에요. 문의 내용은 #_design_core 채널을 찾아주세요. ```tsx import { useState } from "react"; import { Switch } from "seed-design/ui/switch"; export default function SwitchPreview() { const [isChecked, setIsChecked] = useState(false); return ; } ``` ## Installation ## Props ", "default": undefined }, rootRef: { "type": "Ref", "default": undefined }, label: { "type": "ReactNode", "default": undefined, description: <>

{"label is supported in small size only currently."}

}, size: { "type": "\"medium\" | \"small\"", "default": "medium" }, disabled: { "type": "boolean", "default": undefined }, invalid: { "type": "boolean", "default": undefined }, required: { "type": "boolean", "default": undefined }, checked: { "type": "boolean", "default": undefined }, defaultChecked: { "type": "boolean", "default": undefined }, onCheckedChange: { "type": "((checked: boolean) => void)", "default": undefined }, asChild: { "type": "boolean", "default": "false", description: <>

{"Whether the element should be rendered as a child of a slot."}

} }} /> ## Examples ### Medium ```tsx import { useState } from "react"; import { Switch } from "seed-design/ui/switch"; export default function SwitchMedium() { const [isChecked, setIsChecked] = useState(false); return ; } ``` ### Small ```tsx import { useState } from "react"; import { Switch } from "seed-design/ui/switch"; export default function SwitchSmall() { const [isChecked, setIsChecked] = useState(false); return ; } ``` ### Disabled ```tsx import { Switch } from "seed-design/ui/switch"; export default function SwitchDisabled() { return (
); } ```
file: ./content/react/components/toggle-button.mdx # Toggle Button 이 문서는 정리 중이에요. 문의 내용은 #_design_core 채널을 찾아주세요. ```tsx import { useState } from "react"; import { ToggleButton } from "seed-design/ui/toggle-button"; export default function ToggleButtonPreview() { const [pressed, setPressed] = useState(false); return ( {pressed ? "선택됨" : "미선택"} ); } ``` ## Installation ## Props

{"버튼에 등록된 비동기 작업이 진행 중임을 사용자에게 알립니다."}

}, disabled: { "type": "boolean", "default": "false", description: <>

{"버튼의 비활성화 여부를 나타냅니다."}

}, pressed: { "type": "boolean", "default": undefined }, defaultPressed: { "type": "boolean", "default": undefined }, onPressedChange: { "type": "((pressed: boolean) => void)", "default": undefined }, asChild: { "type": "boolean", "default": "false", description: <>

{"Whether the element should be rendered as a child of a slot."}

} }} /> ## Examples ### Brand Solid ```tsx import { useState } from "react"; import { ToggleButton } from "seed-design/ui/toggle-button"; export default function ToggleButtonBrandSolid() { const [pressed, setPressed] = useState(false); return ( {pressed ? "선택됨" : "미선택"} ); } ``` ### Neutral Weak ```tsx import { useState } from "react"; import { ToggleButton } from "seed-design/ui/toggle-button"; export default function ToggleButtonBrandSolid() { const [pressed, setPressed] = useState(false); return ( {pressed ? "선택됨" : "미선택"} ); } ``` ### Small ```tsx import { useState } from "react"; import { ToggleButton } from "seed-design/ui/toggle-button"; export default function ToggleButtonSmall() { const [pressed, setPressed] = useState(false); return ( {pressed ? "선택됨" : "미선택"} ); } ``` ### Xsmall ```tsx import { useState } from "react"; import { ToggleButton } from "seed-design/ui/toggle-button"; export default function ToggleButtonXsmall() { const [pressed, setPressed] = useState(false); return ( {pressed ? "선택됨" : "미선택"} ); } ``` ### Prefix Icon ```tsx import { IconCheckmarkLine, IconPlusLine } from "@karrotmarket/react-monochrome-icon"; import { PrefixIcon } from "@seed-design/react"; import { useState } from "react"; import { ToggleButton } from "seed-design/ui/toggle-button"; export default function ToggleButtonPrefixIcon() { const [pressed, setPressed] = useState(false); return ( : } /> {pressed ? "선택됨" : "미선택"} ); } ``` ### Disabled ```tsx import { ToggleButton } from "seed-design/ui/toggle-button"; export default function ToggleButtonDisabled() { return 비활성; } ``` ### Loading ```tsx import { useState } from "react"; import { ToggleButton } from "seed-design/ui/toggle-button"; export default function ToggleButtonLoading() { const [pressed, setPressed] = useState(false); const [loading, setLoading] = useState(false); function handleToggle() { setLoading(true); setTimeout(() => { setLoading(false); setPressed((prev) => !prev); }, 2000); } // 이벤트 핸들링이 필요할 수 있으므로 loading은 disabled를 포함하지 않습니다. 이벤트 발생을 원하지 않는 경우, disabled 속성을 추가해주세요. return ( 시간이 걸리는 토글 ); } ``` file: ./content/react/components/(layout)/box.mdx # Box Box 컴포넌트는 가장 기초적인 레이아웃 컴포넌트입니다. 디자인 토큰을 JSX에서 사용할 수 있도록 도와줍니다. ```tsx import { Box } from "@seed-design/react"; export default function BoxPreview() { return ( Box Example ); } ``` ## Usage ```tsx import { Box } from "@seed-design/react"; ``` ```tsx ``` ## Props ", "default": undefined }, background: { "type": "ScopedColorBg | ScopedColorPalette | (string & {})", "default": undefined }, bg: { "type": "ScopedColorBg | ScopedColorPalette | (string & {})", "default": undefined, description: <>

{"Shorthand for "}{"background"}{"."}

}, color: { "type": "ScopedColorPalette | (string & {}) | ScopedColorFg", "default": undefined }, borderColor: { "type": "ScopedColorPalette | (string & {}) | ScopedColorStroke", "default": undefined }, borderWidth: { "type": "0 | (string & {}) | 1", "default": undefined }, borderTopWidth: { "type": "0 | (string & {}) | 1", "default": undefined }, borderRightWidth: { "type": "0 | (string & {}) | 1", "default": undefined }, borderBottomWidth: { "type": "0 | (string & {}) | 1", "default": undefined }, borderLeftWidth: { "type": "0 | (string & {}) | 1", "default": undefined }, borderRadius: { "type": "0 | (string & {}) | \"r0_5\" | \"r1\" | \"r1_5\" | \"r2\" | \"r2_5\" | \"r3\" | \"r3_5\" | \"r4\" | \"r5\" | \"r6\" | \"full\"", "default": undefined }, borderTopLeftRadius: { "type": "0 | (string & {}) | \"r0_5\" | \"r1\" | \"r1_5\" | \"r2\" | \"r2_5\" | \"r3\" | \"r3_5\" | \"r4\" | \"r5\" | \"r6\" | \"full\"", "default": undefined }, borderTopRightRadius: { "type": "0 | (string & {}) | \"r0_5\" | \"r1\" | \"r1_5\" | \"r2\" | \"r2_5\" | \"r3\" | \"r3_5\" | \"r4\" | \"r5\" | \"r6\" | \"full\"", "default": undefined }, borderBottomRightRadius: { "type": "0 | (string & {}) | \"r0_5\" | \"r1\" | \"r1_5\" | \"r2\" | \"r2_5\" | \"r3\" | \"r3_5\" | \"r4\" | \"r5\" | \"r6\" | \"full\"", "default": undefined }, borderBottomLeftRadius: { "type": "0 | (string & {}) | \"r0_5\" | \"r1\" | \"r1_5\" | \"r2\" | \"r2_5\" | \"r3\" | \"r3_5\" | \"r4\" | \"r5\" | \"r6\" | \"full\"", "default": undefined }, width: { "type": "(string & {}) | \"full\" | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, minWidth: { "type": "(string & {}) | \"full\" | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, maxWidth: { "type": "(string & {}) | \"full\" | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, height: { "type": "(string & {}) | \"full\" | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, minHeight: { "type": "(string & {}) | \"full\" | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, maxHeight: { "type": "(string & {}) | \"full\" | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, top: { "type": "0 | (string & {})", "default": undefined }, left: { "type": "0 | (string & {})", "default": undefined }, right: { "type": "0 | (string & {})", "default": undefined }, bottom: { "type": "0 | (string & {})", "default": undefined }, padding: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, p: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"padding"}{"."}

}, paddingX: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, px: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"paddingX"}{"."}

}, paddingY: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, py: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"paddingY"}{"."}

}, paddingTop: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, pt: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"paddingTop"}{"."}

}, paddingRight: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, pr: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"paddingRight"}{"."}

}, paddingBottom: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, pb: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"paddingBottom"}{"."}

}, paddingLeft: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, pl: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"paddingLeft"}{"."}

}, display: { "type": "\"block\" | \"flex\" | \"inline-flex\" | \"inline\" | \"inline-block\" | \"none\" | \"inlineFlex\" | \"inlineBlock\"", "default": undefined }, position: { "type": "\"relative\" | \"absolute\" | \"fixed\" | \"sticky\"", "default": undefined }, overflowX: { "type": "\"hidden\" | \"visible\" | \"scroll\" | \"auto\"", "default": undefined }, overflowY: { "type": "\"hidden\" | \"visible\" | \"scroll\" | \"auto\"", "default": undefined }, flexGrow: { "type": "0 | 1 | (number & {})", "default": undefined }, flexShrink: { "type": "0 | (number & {})", "default": undefined }, flexDirection: { "type": "\"row\" | \"column\" | \"row-reverse\" | \"column-reverse\" | \"rowReverse\" | \"columnReverse\"", "default": undefined }, flexWrap: { "type": "\"wrap\" | \"wrap-reverse\" | \"nowrap\"", "default": undefined }, justifyContent: { "type": "\"center\" | \"flex-start\" | \"flex-end\" | \"space-between\" | \"space-around\" | \"flexStart\" | \"flexEnd\" | \"spaceBetween\" | \"spaceAround\"", "default": undefined }, alignItems: { "type": "\"center\" | \"flex-start\" | \"flex-end\" | \"flexStart\" | \"flexEnd\" | \"stretch\"", "default": undefined }, alignContent: { "type": "\"center\" | \"flex-start\" | \"flex-end\" | \"flexStart\" | \"flexEnd\" | \"stretch\"", "default": undefined }, alignSelf: { "type": "\"center\" | \"flex-start\" | \"flex-end\" | \"flexStart\" | \"flexEnd\" | \"stretch\"", "default": undefined }, gap: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined } }} /> file: ./content/react/components/(layout)/columns.mdx # Columns (Deprecated) 여러 열로 구성된 레이아웃을 구성합니다. 디자인 토큰을 JSX에서 사용할 수 있도록 도와줍니다. (Deprecated) ```tsx import { Column, Columns } from "@seed-design/react"; /** * @deprecated use `HStack` instead. */ export default function ColumnsPreview() { return ( 1 Content Width 2 ); } ``` ## Deprecated `Columns` 컴포넌트는 더 이상 사용되지 않습니다. 대신 `HStack`을 사용하세요. ## Usage ```tsx import { Columns, Column } from "@seed-design/react"; ``` ```tsx ``` ## Props ### `Columns` ", "default": undefined }, background: { "type": "ScopedColorPalette | (string & {}) | ScopedColorBg", "default": undefined }, bg: { "type": "ScopedColorPalette | (string & {}) | ScopedColorBg", "default": undefined, description: <>

{"Shorthand for "}{"background"}{"."}

}, borderColor: { "type": "ScopedColorPalette | (string & {}) | ScopedColorStroke", "default": undefined }, borderWidth: { "type": "0 | (string & {}) | 1", "default": undefined }, borderTopWidth: { "type": "0 | (string & {}) | 1", "default": undefined }, borderRightWidth: { "type": "0 | (string & {}) | 1", "default": undefined }, borderBottomWidth: { "type": "0 | (string & {}) | 1", "default": undefined }, borderLeftWidth: { "type": "0 | (string & {}) | 1", "default": undefined }, borderRadius: { "type": "0 | (string & {}) | \"r0_5\" | \"r1\" | \"r1_5\" | \"r2\" | \"r2_5\" | \"r3\" | \"r3_5\" | \"r4\" | \"r5\" | \"r6\" | \"full\"", "default": undefined }, borderTopLeftRadius: { "type": "0 | (string & {}) | \"r0_5\" | \"r1\" | \"r1_5\" | \"r2\" | \"r2_5\" | \"r3\" | \"r3_5\" | \"r4\" | \"r5\" | \"r6\" | \"full\"", "default": undefined }, borderTopRightRadius: { "type": "0 | (string & {}) | \"r0_5\" | \"r1\" | \"r1_5\" | \"r2\" | \"r2_5\" | \"r3\" | \"r3_5\" | \"r4\" | \"r5\" | \"r6\" | \"full\"", "default": undefined }, borderBottomRightRadius: { "type": "0 | (string & {}) | \"r0_5\" | \"r1\" | \"r1_5\" | \"r2\" | \"r2_5\" | \"r3\" | \"r3_5\" | \"r4\" | \"r5\" | \"r6\" | \"full\"", "default": undefined }, borderBottomLeftRadius: { "type": "0 | (string & {}) | \"r0_5\" | \"r1\" | \"r1_5\" | \"r2\" | \"r2_5\" | \"r3\" | \"r3_5\" | \"r4\" | \"r5\" | \"r6\" | \"full\"", "default": undefined }, width: { "type": "(string & {}) | \"full\" | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, minWidth: { "type": "(string & {}) | \"full\" | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, maxWidth: { "type": "(string & {}) | \"full\" | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, height: { "type": "(string & {}) | \"full\" | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, minHeight: { "type": "(string & {}) | \"full\" | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, maxHeight: { "type": "(string & {}) | \"full\" | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, top: { "type": "0 | (string & {})", "default": undefined }, left: { "type": "0 | (string & {})", "default": undefined }, right: { "type": "0 | (string & {})", "default": undefined }, bottom: { "type": "0 | (string & {})", "default": undefined }, padding: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, p: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"padding"}{"."}

}, paddingX: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, px: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"paddingX"}{"."}

}, paddingY: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, py: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"paddingY"}{"."}

}, paddingTop: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, pt: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"paddingTop"}{"."}

}, paddingRight: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, pr: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"paddingRight"}{"."}

}, paddingBottom: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, pb: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"paddingBottom"}{"."}

}, paddingLeft: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, pl: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"paddingLeft"}{"."}

}, position: { "type": "\"relative\" | \"absolute\" | \"fixed\" | \"sticky\"", "default": undefined }, overflowX: { "type": "\"hidden\" | \"visible\" | \"scroll\" | \"auto\"", "default": undefined }, overflowY: { "type": "\"hidden\" | \"visible\" | \"scroll\" | \"auto\"", "default": undefined }, flexGrow: { "type": "0 | 1 | (number & {})", "default": undefined }, flexShrink: { "type": "0 | (number & {})", "default": undefined }, flexDirection: { "type": "\"row\" | \"column\" | \"row-reverse\" | \"column-reverse\" | \"rowReverse\" | \"columnReverse\"", "default": undefined }, flexWrap: { "type": "\"wrap\" | \"wrap-reverse\" | \"nowrap\"", "default": undefined }, justifyContent: { "type": "\"center\" | \"flex-start\" | \"flex-end\" | \"space-between\" | \"space-around\" | \"flexStart\" | \"flexEnd\" | \"spaceBetween\" | \"spaceAround\"", "default": undefined }, alignItems: { "type": "\"center\" | \"flex-start\" | \"flex-end\" | \"flexStart\" | \"flexEnd\" | \"stretch\"", "default": undefined }, alignContent: { "type": "\"center\" | \"flex-start\" | \"flex-end\" | \"flexStart\" | \"flexEnd\" | \"stretch\"", "default": undefined }, alignSelf: { "type": "\"center\" | \"flex-start\" | \"flex-end\" | \"flexStart\" | \"flexEnd\" | \"stretch\"", "default": undefined }, gap: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined } }} /> ### `Column` ", "default": undefined }, background: { "type": "(string & {}) | ScopedColorPalette | ScopedColorBg", "default": undefined }, bg: { "type": "(string & {}) | ScopedColorPalette | ScopedColorBg", "default": undefined, description: <>

{"Shorthand for "}{"background"}{"."}

}, borderColor: { "type": "(string & {}) | ScopedColorPalette | ScopedColorStroke", "default": undefined }, borderWidth: { "type": "0 | (string & {}) | 1", "default": undefined }, borderTopWidth: { "type": "0 | (string & {}) | 1", "default": undefined }, borderRightWidth: { "type": "0 | (string & {}) | 1", "default": undefined }, borderBottomWidth: { "type": "0 | (string & {}) | 1", "default": undefined }, borderLeftWidth: { "type": "0 | (string & {}) | 1", "default": undefined }, borderRadius: { "type": "0 | \"full\" | (string & {}) | \"r0_5\" | \"r1\" | \"r1_5\" | \"r2\" | \"r2_5\" | \"r3\" | \"r3_5\" | \"r4\" | \"r5\" | \"r6\"", "default": undefined }, borderTopLeftRadius: { "type": "0 | \"full\" | (string & {}) | \"r0_5\" | \"r1\" | \"r1_5\" | \"r2\" | \"r2_5\" | \"r3\" | \"r3_5\" | \"r4\" | \"r5\" | \"r6\"", "default": undefined }, borderTopRightRadius: { "type": "0 | \"full\" | (string & {}) | \"r0_5\" | \"r1\" | \"r1_5\" | \"r2\" | \"r2_5\" | \"r3\" | \"r3_5\" | \"r4\" | \"r5\" | \"r6\"", "default": undefined }, borderBottomRightRadius: { "type": "0 | \"full\" | (string & {}) | \"r0_5\" | \"r1\" | \"r1_5\" | \"r2\" | \"r2_5\" | \"r3\" | \"r3_5\" | \"r4\" | \"r5\" | \"r6\"", "default": undefined }, borderBottomLeftRadius: { "type": "0 | \"full\" | (string & {}) | \"r0_5\" | \"r1\" | \"r1_5\" | \"r2\" | \"r2_5\" | \"r3\" | \"r3_5\" | \"r4\" | \"r5\" | \"r6\"", "default": undefined }, minWidth: { "type": "Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\" | \"full\" | (string & {})", "default": undefined }, maxWidth: { "type": "Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\" | \"full\" | (string & {})", "default": undefined }, height: { "type": "Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\" | \"full\" | (string & {})", "default": undefined }, minHeight: { "type": "Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\" | \"full\" | (string & {})", "default": undefined }, maxHeight: { "type": "Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\" | \"full\" | (string & {})", "default": undefined }, top: { "type": "0 | (string & {})", "default": undefined }, left: { "type": "0 | (string & {})", "default": undefined }, right: { "type": "0 | (string & {})", "default": undefined }, bottom: { "type": "0 | (string & {})", "default": undefined }, padding: { "type": "0 | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\" | (string & {})", "default": undefined }, p: { "type": "0 | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\" | (string & {})", "default": undefined, description: <>

{"Shorthand for "}{"padding"}{"."}

}, paddingX: { "type": "0 | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\" | (string & {})", "default": undefined }, px: { "type": "0 | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\" | (string & {})", "default": undefined, description: <>

{"Shorthand for "}{"paddingX"}{"."}

}, paddingY: { "type": "0 | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\" | (string & {})", "default": undefined }, py: { "type": "0 | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\" | (string & {})", "default": undefined, description: <>

{"Shorthand for "}{"paddingY"}{"."}

}, paddingTop: { "type": "0 | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\" | (string & {})", "default": undefined }, pt: { "type": "0 | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\" | (string & {})", "default": undefined, description: <>

{"Shorthand for "}{"paddingTop"}{"."}

}, paddingRight: { "type": "0 | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\" | (string & {})", "default": undefined }, pr: { "type": "0 | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\" | (string & {})", "default": undefined, description: <>

{"Shorthand for "}{"paddingRight"}{"."}

}, paddingBottom: { "type": "0 | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\" | (string & {})", "default": undefined }, pb: { "type": "0 | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\" | (string & {})", "default": undefined, description: <>

{"Shorthand for "}{"paddingBottom"}{"."}

}, paddingLeft: { "type": "0 | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\" | (string & {})", "default": undefined }, pl: { "type": "0 | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\" | (string & {})", "default": undefined, description: <>

{"Shorthand for "}{"paddingLeft"}{"."}

}, position: { "type": "\"relative\" | \"absolute\" | \"fixed\" | \"sticky\"", "default": undefined }, overflowX: { "type": "\"hidden\" | \"visible\" | \"scroll\" | \"auto\"", "default": undefined }, overflowY: { "type": "\"hidden\" | \"visible\" | \"scroll\" | \"auto\"", "default": undefined }, flexGrow: { "type": "0 | 1 | (number & {})", "default": undefined }, flexShrink: { "type": "0 | (number & {})", "default": undefined }, flexWrap: { "type": "\"wrap\" | \"wrap-reverse\" | \"nowrap\"", "default": undefined }, justifyContent: { "type": "\"center\" | \"flex-start\" | \"flex-end\" | \"space-between\" | \"space-around\" | \"flexStart\" | \"flexEnd\" | \"spaceBetween\" | \"spaceAround\"", "default": undefined }, alignItems: { "type": "\"center\" | \"flex-start\" | \"flex-end\" | \"flexStart\" | \"flexEnd\" | \"stretch\"", "default": undefined }, alignContent: { "type": "\"center\" | \"flex-start\" | \"flex-end\" | \"flexStart\" | \"flexEnd\" | \"stretch\"", "default": undefined }, alignSelf: { "type": "\"center\" | \"flex-start\" | \"flex-end\" | \"flexStart\" | \"flexEnd\" | \"stretch\"", "default": undefined }, gap: { "type": "0 | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\" | (string & {})", "default": undefined } }} /> file: ./content/react/components/(layout)/flex.mdx # Flex Flex 컴포넌트는 flexbox를 사용하며 디자인 토큰을 JSX에서 사용할 수 있도록 도와줍니다. ```tsx import { Flex } from "@seed-design/react"; export default function FlexPreview() { return ( 1 2 3 4 5 ); } ``` ## Props

{"Shorthand for "}{"flexDirection"}{"."}

}, wrap: { "type": "true | \"wrap\" | \"wrap-reverse\" | \"nowrap\"", "default": undefined, description: <>

{"Shorthand for "}{"flexWrap"}{".\nIf true, flex-wrap will be set to "}{"wrap"}{"."}

}, align: { "type": "\"flex-start\" | \"flex-end\" | \"center\" | \"stretch\" | \"flexStart\" | \"flexEnd\"", "default": undefined, description: <>

{"Shorthand for "}{"alignItems"}{"."}

}, justify: { "type": "\"flex-start\" | \"flex-end\" | \"center\" | \"flexStart\" | \"flexEnd\" | \"space-between\" | \"space-around\" | \"spaceBetween\" | \"spaceAround\"", "default": undefined, description: <>

{"Shorthand for "}{"justifyContent"}{"."}

}, grow: { "type": "true | 0 | 1 | (number & {})", "default": undefined, description: <>

{"Shorthand for "}{"flexGrow"}{".\nIf true, flex-grow will be set to "}{"1"}{"."}

}, shrink: { "type": "0 | (number & {})", "default": undefined, description: <>

{"Shorthand for "}{"flexShrink"}{"."}

}, color: { "type": "ScopedColorFg | ScopedColorPalette | (string & {})", "default": undefined }, as: { "type": "ElementType", "default": undefined }, background: { "type": "ScopedColorPalette | (string & {}) | ScopedColorBg", "default": undefined }, bg: { "type": "ScopedColorPalette | (string & {}) | ScopedColorBg", "default": undefined, description: <>

{"Shorthand for "}{"background"}{"."}

}, borderColor: { "type": "ScopedColorPalette | (string & {}) | ScopedColorStroke", "default": undefined }, borderWidth: { "type": "0 | 1 | (string & {})", "default": undefined }, borderTopWidth: { "type": "0 | 1 | (string & {})", "default": undefined }, borderRightWidth: { "type": "0 | 1 | (string & {})", "default": undefined }, borderBottomWidth: { "type": "0 | 1 | (string & {})", "default": undefined }, borderLeftWidth: { "type": "0 | 1 | (string & {})", "default": undefined }, borderRadius: { "type": "0 | (string & {}) | \"r0_5\" | \"r1\" | \"r1_5\" | \"r2\" | \"r2_5\" | \"r3\" | \"r3_5\" | \"r4\" | \"r5\" | \"r6\" | \"full\"", "default": undefined }, borderTopLeftRadius: { "type": "0 | (string & {}) | \"r0_5\" | \"r1\" | \"r1_5\" | \"r2\" | \"r2_5\" | \"r3\" | \"r3_5\" | \"r4\" | \"r5\" | \"r6\" | \"full\"", "default": undefined }, borderTopRightRadius: { "type": "0 | (string & {}) | \"r0_5\" | \"r1\" | \"r1_5\" | \"r2\" | \"r2_5\" | \"r3\" | \"r3_5\" | \"r4\" | \"r5\" | \"r6\" | \"full\"", "default": undefined }, borderBottomRightRadius: { "type": "0 | (string & {}) | \"r0_5\" | \"r1\" | \"r1_5\" | \"r2\" | \"r2_5\" | \"r3\" | \"r3_5\" | \"r4\" | \"r5\" | \"r6\" | \"full\"", "default": undefined }, borderBottomLeftRadius: { "type": "0 | (string & {}) | \"r0_5\" | \"r1\" | \"r1_5\" | \"r2\" | \"r2_5\" | \"r3\" | \"r3_5\" | \"r4\" | \"r5\" | \"r6\" | \"full\"", "default": undefined }, width: { "type": "(string & {}) | \"full\" | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, minWidth: { "type": "(string & {}) | \"full\" | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, maxWidth: { "type": "(string & {}) | \"full\" | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, height: { "type": "(string & {}) | \"full\" | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, minHeight: { "type": "(string & {}) | \"full\" | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, maxHeight: { "type": "(string & {}) | \"full\" | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, top: { "type": "0 | (string & {})", "default": undefined }, left: { "type": "0 | (string & {})", "default": undefined }, right: { "type": "0 | (string & {})", "default": undefined }, bottom: { "type": "0 | (string & {})", "default": undefined }, padding: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, p: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"padding"}{"."}

}, paddingX: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, px: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"paddingX"}{"."}

}, paddingY: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, py: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"paddingY"}{"."}

}, paddingTop: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, pt: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"paddingTop"}{"."}

}, paddingRight: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, pr: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"paddingRight"}{"."}

}, paddingBottom: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, pb: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"paddingBottom"}{"."}

}, paddingLeft: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, pl: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"paddingLeft"}{"."}

}, position: { "type": "\"relative\" | \"absolute\" | \"fixed\" | \"sticky\"", "default": undefined }, overflowX: { "type": "\"hidden\" | \"visible\" | \"scroll\" | \"auto\"", "default": undefined }, overflowY: { "type": "\"hidden\" | \"visible\" | \"scroll\" | \"auto\"", "default": undefined }, flexGrow: { "type": "0 | 1 | (number & {})", "default": undefined }, flexShrink: { "type": "0 | (number & {})", "default": undefined }, flexDirection: { "type": "\"row\" | \"column\" | \"row-reverse\" | \"column-reverse\" | \"rowReverse\" | \"columnReverse\"", "default": undefined }, flexWrap: { "type": "\"wrap\" | \"wrap-reverse\" | \"nowrap\"", "default": undefined }, justifyContent: { "type": "\"flex-start\" | \"flex-end\" | \"center\" | \"flexStart\" | \"flexEnd\" | \"space-between\" | \"space-around\" | \"spaceBetween\" | \"spaceAround\"", "default": undefined }, alignItems: { "type": "\"flex-start\" | \"flex-end\" | \"center\" | \"stretch\" | \"flexStart\" | \"flexEnd\"", "default": undefined }, alignContent: { "type": "\"flex-start\" | \"flex-end\" | \"center\" | \"stretch\" | \"flexStart\" | \"flexEnd\"", "default": undefined }, alignSelf: { "type": "\"flex-start\" | \"flex-end\" | \"center\" | \"stretch\" | \"flexStart\" | \"flexEnd\"", "default": undefined }, gap: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined } }} /> file: ./content/react/components/(layout)/h-stack.mdx # HStack 가로로 쌓이는 레이아웃을 구성합니다. 디자인 토큰을 JSX에서 사용할 수 있도록 도와줍니다. ```tsx import { Box, HStack } from "@seed-design/react"; export default function HStackPreview() { return ( 1 2 3 ); } ``` ## Usage ```tsx import { HStack } from "@seed-design/react"; ``` ```tsx ``` ## Props ", "default": undefined }, background: { "type": "ScopedColorPalette | (string & {}) | ScopedColorBg", "default": undefined }, bg: { "type": "ScopedColorPalette | (string & {}) | ScopedColorBg", "default": undefined, description: <>

{"Shorthand for "}{"background"}{"."}

}, borderColor: { "type": "ScopedColorPalette | (string & {}) | ScopedColorStroke", "default": undefined }, borderWidth: { "type": "0 | (string & {}) | 1", "default": undefined }, borderTopWidth: { "type": "0 | (string & {}) | 1", "default": undefined }, borderRightWidth: { "type": "0 | (string & {}) | 1", "default": undefined }, borderBottomWidth: { "type": "0 | (string & {}) | 1", "default": undefined }, borderLeftWidth: { "type": "0 | (string & {}) | 1", "default": undefined }, borderRadius: { "type": "0 | (string & {}) | \"r0_5\" | \"r1\" | \"r1_5\" | \"r2\" | \"r2_5\" | \"r3\" | \"r3_5\" | \"r4\" | \"r5\" | \"r6\" | \"full\"", "default": undefined }, borderTopLeftRadius: { "type": "0 | (string & {}) | \"r0_5\" | \"r1\" | \"r1_5\" | \"r2\" | \"r2_5\" | \"r3\" | \"r3_5\" | \"r4\" | \"r5\" | \"r6\" | \"full\"", "default": undefined }, borderTopRightRadius: { "type": "0 | (string & {}) | \"r0_5\" | \"r1\" | \"r1_5\" | \"r2\" | \"r2_5\" | \"r3\" | \"r3_5\" | \"r4\" | \"r5\" | \"r6\" | \"full\"", "default": undefined }, borderBottomRightRadius: { "type": "0 | (string & {}) | \"r0_5\" | \"r1\" | \"r1_5\" | \"r2\" | \"r2_5\" | \"r3\" | \"r3_5\" | \"r4\" | \"r5\" | \"r6\" | \"full\"", "default": undefined }, borderBottomLeftRadius: { "type": "0 | (string & {}) | \"r0_5\" | \"r1\" | \"r1_5\" | \"r2\" | \"r2_5\" | \"r3\" | \"r3_5\" | \"r4\" | \"r5\" | \"r6\" | \"full\"", "default": undefined }, width: { "type": "(string & {}) | \"full\" | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, minWidth: { "type": "(string & {}) | \"full\" | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, maxWidth: { "type": "(string & {}) | \"full\" | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, height: { "type": "(string & {}) | \"full\" | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, minHeight: { "type": "(string & {}) | \"full\" | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, maxHeight: { "type": "(string & {}) | \"full\" | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, top: { "type": "0 | (string & {})", "default": undefined }, left: { "type": "0 | (string & {})", "default": undefined }, right: { "type": "0 | (string & {})", "default": undefined }, bottom: { "type": "0 | (string & {})", "default": undefined }, padding: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, p: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"padding"}{"."}

}, paddingX: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, px: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"paddingX"}{"."}

}, paddingY: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, py: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"paddingY"}{"."}

}, paddingTop: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, pt: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"paddingTop"}{"."}

}, paddingRight: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, pr: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"paddingRight"}{"."}

}, paddingBottom: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, pb: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"paddingBottom"}{"."}

}, paddingLeft: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, pl: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"paddingLeft"}{"."}

}, position: { "type": "\"relative\" | \"absolute\" | \"fixed\" | \"sticky\"", "default": undefined }, overflowX: { "type": "\"hidden\" | \"visible\" | \"scroll\" | \"auto\"", "default": undefined }, overflowY: { "type": "\"hidden\" | \"visible\" | \"scroll\" | \"auto\"", "default": undefined }, flexGrow: { "type": "0 | 1 | (number & {})", "default": undefined }, flexShrink: { "type": "0 | (number & {})", "default": undefined }, flexWrap: { "type": "\"wrap\" | \"wrap-reverse\" | \"nowrap\"", "default": undefined }, justifyContent: { "type": "\"center\" | \"flex-start\" | \"flex-end\" | \"space-between\" | \"space-around\" | \"flexStart\" | \"flexEnd\" | \"spaceBetween\" | \"spaceAround\"", "default": undefined }, alignItems: { "type": "\"center\" | \"flex-start\" | \"flex-end\" | \"flexStart\" | \"flexEnd\" | \"stretch\"", "default": undefined }, alignContent: { "type": "\"center\" | \"flex-start\" | \"flex-end\" | \"flexStart\" | \"flexEnd\" | \"stretch\"", "default": undefined }, alignSelf: { "type": "\"center\" | \"flex-start\" | \"flex-end\" | \"flexStart\" | \"flexEnd\" | \"stretch\"", "default": undefined }, gap: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, direction: { "type": "\"row\" | \"column\" | \"row-reverse\" | \"column-reverse\" | \"rowReverse\" | \"columnReverse\"", "default": undefined, description: <>

{"Shorthand for "}{"flexDirection"}{"."}

}, wrap: { "type": "true | \"wrap\" | \"wrap-reverse\" | \"nowrap\"", "default": undefined, description: <>

{"Shorthand for "}{"flexWrap"}{".\nIf true, flex-wrap will be set to "}{"wrap"}{"."}

}, align: { "type": "\"center\" | \"flex-start\" | \"flex-end\" | \"flexStart\" | \"flexEnd\" | \"stretch\"", "default": undefined, description: <>

{"Shorthand for "}{"alignItems"}{"."}

}, justify: { "type": "\"center\" | \"flex-start\" | \"flex-end\" | \"space-between\" | \"space-around\" | \"flexStart\" | \"flexEnd\" | \"spaceBetween\" | \"spaceAround\"", "default": undefined, description: <>

{"Shorthand for "}{"justifyContent"}{"."}

}, grow: { "type": "true | 0 | 1 | (number & {})", "default": undefined, description: <>

{"Shorthand for "}{"flexGrow"}{".\nIf true, flex-grow will be set to "}{"1"}{"."}

}, shrink: { "type": "0 | (number & {})", "default": undefined, description: <>

{"Shorthand for "}{"flexShrink"}{"."}

} }} /> file: ./content/react/components/(layout)/inline.mdx # Inline (Deprecated) 인라인 레이아웃을 구성합니다. 디자인 토큰을 JSX에서 사용할 수 있도록 도와줍니다. (Deprecated) ```tsx import { Box, Inline } from "@seed-design/react"; /** * @deprecated Use `HStack` instead. */ export default function InlinePreview() { return ( 1 2 3 ); } ``` ## Deprecated `Inline` 컴포넌트는 더 이상 사용되지 않습니다. 대신 `HStack`과 `wrap` prop을 사용하세요. ## Usage ```tsx import { Inline } from "@seed-design/react"; ``` ```tsx ``` ## Props ", "default": undefined }, background: { "type": "ScopedColorPalette | (string & {}) | ScopedColorBg", "default": undefined }, bg: { "type": "ScopedColorPalette | (string & {}) | ScopedColorBg", "default": undefined, description: <>

{"Shorthand for "}{"background"}{"."}

}, borderColor: { "type": "ScopedColorPalette | (string & {}) | ScopedColorStroke", "default": undefined }, borderWidth: { "type": "0 | (string & {}) | 1", "default": undefined }, borderTopWidth: { "type": "0 | (string & {}) | 1", "default": undefined }, borderRightWidth: { "type": "0 | (string & {}) | 1", "default": undefined }, borderBottomWidth: { "type": "0 | (string & {}) | 1", "default": undefined }, borderLeftWidth: { "type": "0 | (string & {}) | 1", "default": undefined }, borderRadius: { "type": "0 | (string & {}) | \"r0_5\" | \"r1\" | \"r1_5\" | \"r2\" | \"r2_5\" | \"r3\" | \"r3_5\" | \"r4\" | \"r5\" | \"r6\" | \"full\"", "default": undefined }, borderTopLeftRadius: { "type": "0 | (string & {}) | \"r0_5\" | \"r1\" | \"r1_5\" | \"r2\" | \"r2_5\" | \"r3\" | \"r3_5\" | \"r4\" | \"r5\" | \"r6\" | \"full\"", "default": undefined }, borderTopRightRadius: { "type": "0 | (string & {}) | \"r0_5\" | \"r1\" | \"r1_5\" | \"r2\" | \"r2_5\" | \"r3\" | \"r3_5\" | \"r4\" | \"r5\" | \"r6\" | \"full\"", "default": undefined }, borderBottomRightRadius: { "type": "0 | (string & {}) | \"r0_5\" | \"r1\" | \"r1_5\" | \"r2\" | \"r2_5\" | \"r3\" | \"r3_5\" | \"r4\" | \"r5\" | \"r6\" | \"full\"", "default": undefined }, borderBottomLeftRadius: { "type": "0 | (string & {}) | \"r0_5\" | \"r1\" | \"r1_5\" | \"r2\" | \"r2_5\" | \"r3\" | \"r3_5\" | \"r4\" | \"r5\" | \"r6\" | \"full\"", "default": undefined }, width: { "type": "(string & {}) | \"full\" | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, minWidth: { "type": "(string & {}) | \"full\" | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, maxWidth: { "type": "(string & {}) | \"full\" | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, height: { "type": "(string & {}) | \"full\" | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, minHeight: { "type": "(string & {}) | \"full\" | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, maxHeight: { "type": "(string & {}) | \"full\" | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, top: { "type": "0 | (string & {})", "default": undefined }, left: { "type": "0 | (string & {})", "default": undefined }, right: { "type": "0 | (string & {})", "default": undefined }, bottom: { "type": "0 | (string & {})", "default": undefined }, padding: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, p: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"padding"}{"."}

}, paddingX: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, px: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"paddingX"}{"."}

}, paddingY: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, py: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"paddingY"}{"."}

}, paddingTop: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, pt: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"paddingTop"}{"."}

}, paddingRight: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, pr: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"paddingRight"}{"."}

}, paddingBottom: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, pb: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"paddingBottom"}{"."}

}, paddingLeft: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, pl: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"paddingLeft"}{"."}

}, position: { "type": "\"relative\" | \"absolute\" | \"fixed\" | \"sticky\"", "default": undefined }, overflowX: { "type": "\"hidden\" | \"visible\" | \"scroll\" | \"auto\"", "default": undefined }, overflowY: { "type": "\"hidden\" | \"visible\" | \"scroll\" | \"auto\"", "default": undefined }, flexGrow: { "type": "0 | 1 | (number & {})", "default": undefined }, flexShrink: { "type": "0 | (number & {})", "default": undefined }, flexDirection: { "type": "\"row\" | \"column\" | \"row-reverse\" | \"column-reverse\" | \"rowReverse\" | \"columnReverse\"", "default": undefined }, justifyContent: { "type": "\"center\" | \"flex-start\" | \"flex-end\" | \"space-between\" | \"space-around\" | \"flexStart\" | \"flexEnd\" | \"spaceBetween\" | \"spaceAround\"", "default": undefined }, alignItems: { "type": "\"center\" | \"flex-start\" | \"flex-end\" | \"flexStart\" | \"flexEnd\" | \"stretch\"", "default": undefined }, alignContent: { "type": "\"center\" | \"flex-start\" | \"flex-end\" | \"flexStart\" | \"flexEnd\" | \"stretch\"", "default": undefined }, alignSelf: { "type": "\"center\" | \"flex-start\" | \"flex-end\" | \"flexStart\" | \"flexEnd\" | \"stretch\"", "default": undefined }, gap: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined } }} /> file: ./content/react/components/(layout)/stack.mdx # Stack (Deprecated) 세로로 쌓이는 레이아웃을 구성합니다. 디자인 토큰을 JSX에서 사용할 수 있도록 도와줍니다. (Deprecated) ```tsx import { Box, Stack } from "@seed-design/react"; /** * @deprecated Use `VStack` instead. */ export default function StackPreview() { return ( 1 2 3 ); } ``` ## Deprecated `Stack` 컴포넌트는 더 이상 사용되지 않습니다. 대신 `VStack`을 사용하세요. ## Usage ```tsx import { Stack } from "@seed-design/react"; ``` ```tsx ``` ## Props ", "default": undefined }, background: { "type": "ScopedColorPalette | (string & {}) | ScopedColorBg", "default": undefined }, bg: { "type": "ScopedColorPalette | (string & {}) | ScopedColorBg", "default": undefined, description: <>

{"Shorthand for "}{"background"}{"."}

}, borderColor: { "type": "ScopedColorPalette | (string & {}) | ScopedColorStroke", "default": undefined }, borderWidth: { "type": "0 | (string & {}) | 1", "default": undefined }, borderTopWidth: { "type": "0 | (string & {}) | 1", "default": undefined }, borderRightWidth: { "type": "0 | (string & {}) | 1", "default": undefined }, borderBottomWidth: { "type": "0 | (string & {}) | 1", "default": undefined }, borderLeftWidth: { "type": "0 | (string & {}) | 1", "default": undefined }, borderRadius: { "type": "0 | (string & {}) | \"r0_5\" | \"r1\" | \"r1_5\" | \"r2\" | \"r2_5\" | \"r3\" | \"r3_5\" | \"r4\" | \"r5\" | \"r6\" | \"full\"", "default": undefined }, borderTopLeftRadius: { "type": "0 | (string & {}) | \"r0_5\" | \"r1\" | \"r1_5\" | \"r2\" | \"r2_5\" | \"r3\" | \"r3_5\" | \"r4\" | \"r5\" | \"r6\" | \"full\"", "default": undefined }, borderTopRightRadius: { "type": "0 | (string & {}) | \"r0_5\" | \"r1\" | \"r1_5\" | \"r2\" | \"r2_5\" | \"r3\" | \"r3_5\" | \"r4\" | \"r5\" | \"r6\" | \"full\"", "default": undefined }, borderBottomRightRadius: { "type": "0 | (string & {}) | \"r0_5\" | \"r1\" | \"r1_5\" | \"r2\" | \"r2_5\" | \"r3\" | \"r3_5\" | \"r4\" | \"r5\" | \"r6\" | \"full\"", "default": undefined }, borderBottomLeftRadius: { "type": "0 | (string & {}) | \"r0_5\" | \"r1\" | \"r1_5\" | \"r2\" | \"r2_5\" | \"r3\" | \"r3_5\" | \"r4\" | \"r5\" | \"r6\" | \"full\"", "default": undefined }, width: { "type": "(string & {}) | \"full\" | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, minWidth: { "type": "(string & {}) | \"full\" | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, maxWidth: { "type": "(string & {}) | \"full\" | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, height: { "type": "(string & {}) | \"full\" | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, minHeight: { "type": "(string & {}) | \"full\" | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, maxHeight: { "type": "(string & {}) | \"full\" | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, top: { "type": "0 | (string & {})", "default": undefined }, left: { "type": "0 | (string & {})", "default": undefined }, right: { "type": "0 | (string & {})", "default": undefined }, bottom: { "type": "0 | (string & {})", "default": undefined }, padding: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, p: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"padding"}{"."}

}, paddingX: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, px: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"paddingX"}{"."}

}, paddingY: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, py: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"paddingY"}{"."}

}, paddingTop: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, pt: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"paddingTop"}{"."}

}, paddingRight: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, pr: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"paddingRight"}{"."}

}, paddingBottom: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, pb: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"paddingBottom"}{"."}

}, paddingLeft: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, pl: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"paddingLeft"}{"."}

}, position: { "type": "\"relative\" | \"absolute\" | \"fixed\" | \"sticky\"", "default": undefined }, overflowX: { "type": "\"hidden\" | \"visible\" | \"scroll\" | \"auto\"", "default": undefined }, overflowY: { "type": "\"hidden\" | \"visible\" | \"scroll\" | \"auto\"", "default": undefined }, flexGrow: { "type": "0 | 1 | (number & {})", "default": undefined }, flexShrink: { "type": "0 | (number & {})", "default": undefined }, flexWrap: { "type": "\"wrap\" | \"wrap-reverse\" | \"nowrap\"", "default": undefined }, justifyContent: { "type": "\"center\" | \"flex-start\" | \"flex-end\" | \"space-between\" | \"space-around\" | \"flexStart\" | \"flexEnd\" | \"spaceBetween\" | \"spaceAround\"", "default": undefined }, alignItems: { "type": "\"center\" | \"flex-start\" | \"flex-end\" | \"flexStart\" | \"flexEnd\" | \"stretch\"", "default": undefined }, alignContent: { "type": "\"center\" | \"flex-start\" | \"flex-end\" | \"flexStart\" | \"flexEnd\" | \"stretch\"", "default": undefined }, alignSelf: { "type": "\"center\" | \"flex-start\" | \"flex-end\" | \"flexStart\" | \"flexEnd\" | \"stretch\"", "default": undefined }, gap: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, direction: { "type": "\"row\" | \"column\" | \"row-reverse\" | \"column-reverse\" | \"rowReverse\" | \"columnReverse\"", "default": undefined, description: <>

{"Shorthand for "}{"flexDirection"}{"."}

}, wrap: { "type": "true | \"wrap\" | \"wrap-reverse\" | \"nowrap\"", "default": undefined, description: <>

{"Shorthand for "}{"flexWrap"}{".\nIf true, flex-wrap will be set to "}{"wrap"}{"."}

}, align: { "type": "\"center\" | \"flex-start\" | \"flex-end\" | \"flexStart\" | \"flexEnd\" | \"stretch\"", "default": undefined, description: <>

{"Shorthand for "}{"alignItems"}{"."}

}, justify: { "type": "\"center\" | \"flex-start\" | \"flex-end\" | \"space-between\" | \"space-around\" | \"flexStart\" | \"flexEnd\" | \"spaceBetween\" | \"spaceAround\"", "default": undefined, description: <>

{"Shorthand for "}{"justifyContent"}{"."}

}, grow: { "type": "true | 0 | 1 | (number & {})", "default": undefined, description: <>

{"Shorthand for "}{"flexGrow"}{".\nIf true, flex-grow will be set to "}{"1"}{"."}

}, shrink: { "type": "0 | (number & {})", "default": undefined, description: <>

{"Shorthand for "}{"flexShrink"}{"."}

} }} /> file: ./content/react/components/(layout)/v-stack.mdx # VStack 세로로 쌓이는 레이아웃을 구성합니다. 디자인 토큰을 JSX에서 사용할 수 있도록 도와줍니다. ```tsx import { Box, VStack } from "@seed-design/react"; export default function VStackPreview() { return ( 1 2 3 ); } ``` ## Usage ```tsx import { VStack } from "@seed-design/react"; ``` ```tsx ``` ## Props ", "default": undefined }, background: { "type": "ScopedColorPalette | (string & {}) | ScopedColorBg", "default": undefined }, bg: { "type": "ScopedColorPalette | (string & {}) | ScopedColorBg", "default": undefined, description: <>

{"Shorthand for "}{"background"}{"."}

}, borderColor: { "type": "ScopedColorPalette | (string & {}) | ScopedColorStroke", "default": undefined }, borderWidth: { "type": "0 | (string & {}) | 1", "default": undefined }, borderTopWidth: { "type": "0 | (string & {}) | 1", "default": undefined }, borderRightWidth: { "type": "0 | (string & {}) | 1", "default": undefined }, borderBottomWidth: { "type": "0 | (string & {}) | 1", "default": undefined }, borderLeftWidth: { "type": "0 | (string & {}) | 1", "default": undefined }, borderRadius: { "type": "0 | (string & {}) | \"r0_5\" | \"r1\" | \"r1_5\" | \"r2\" | \"r2_5\" | \"r3\" | \"r3_5\" | \"r4\" | \"r5\" | \"r6\" | \"full\"", "default": undefined }, borderTopLeftRadius: { "type": "0 | (string & {}) | \"r0_5\" | \"r1\" | \"r1_5\" | \"r2\" | \"r2_5\" | \"r3\" | \"r3_5\" | \"r4\" | \"r5\" | \"r6\" | \"full\"", "default": undefined }, borderTopRightRadius: { "type": "0 | (string & {}) | \"r0_5\" | \"r1\" | \"r1_5\" | \"r2\" | \"r2_5\" | \"r3\" | \"r3_5\" | \"r4\" | \"r5\" | \"r6\" | \"full\"", "default": undefined }, borderBottomRightRadius: { "type": "0 | (string & {}) | \"r0_5\" | \"r1\" | \"r1_5\" | \"r2\" | \"r2_5\" | \"r3\" | \"r3_5\" | \"r4\" | \"r5\" | \"r6\" | \"full\"", "default": undefined }, borderBottomLeftRadius: { "type": "0 | (string & {}) | \"r0_5\" | \"r1\" | \"r1_5\" | \"r2\" | \"r2_5\" | \"r3\" | \"r3_5\" | \"r4\" | \"r5\" | \"r6\" | \"full\"", "default": undefined }, width: { "type": "(string & {}) | \"full\" | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, minWidth: { "type": "(string & {}) | \"full\" | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, maxWidth: { "type": "(string & {}) | \"full\" | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, height: { "type": "(string & {}) | \"full\" | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, minHeight: { "type": "(string & {}) | \"full\" | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, maxHeight: { "type": "(string & {}) | \"full\" | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, top: { "type": "0 | (string & {})", "default": undefined }, left: { "type": "0 | (string & {})", "default": undefined }, right: { "type": "0 | (string & {})", "default": undefined }, bottom: { "type": "0 | (string & {})", "default": undefined }, padding: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, p: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"padding"}{"."}

}, paddingX: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, px: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"paddingX"}{"."}

}, paddingY: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, py: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"paddingY"}{"."}

}, paddingTop: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, pt: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"paddingTop"}{"."}

}, paddingRight: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, pr: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"paddingRight"}{"."}

}, paddingBottom: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, pb: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"paddingBottom"}{"."}

}, paddingLeft: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, pl: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined, description: <>

{"Shorthand for "}{"paddingLeft"}{"."}

}, position: { "type": "\"relative\" | \"absolute\" | \"fixed\" | \"sticky\"", "default": undefined }, overflowX: { "type": "\"hidden\" | \"visible\" | \"scroll\" | \"auto\"", "default": undefined }, overflowY: { "type": "\"hidden\" | \"visible\" | \"scroll\" | \"auto\"", "default": undefined }, flexGrow: { "type": "0 | 1 | (number & {})", "default": undefined }, flexShrink: { "type": "0 | (number & {})", "default": undefined }, flexWrap: { "type": "\"wrap\" | \"wrap-reverse\" | \"nowrap\"", "default": undefined }, justifyContent: { "type": "\"center\" | \"flex-start\" | \"flex-end\" | \"space-between\" | \"space-around\" | \"flexStart\" | \"flexEnd\" | \"spaceBetween\" | \"spaceAround\"", "default": undefined }, alignItems: { "type": "\"center\" | \"flex-start\" | \"flex-end\" | \"flexStart\" | \"flexEnd\" | \"stretch\"", "default": undefined }, alignContent: { "type": "\"center\" | \"flex-start\" | \"flex-end\" | \"flexStart\" | \"flexEnd\" | \"stretch\"", "default": undefined }, alignSelf: { "type": "\"center\" | \"flex-start\" | \"flex-end\" | \"flexStart\" | \"flexEnd\" | \"stretch\"", "default": undefined }, gap: { "type": "0 | (string & {}) | Dimension | \"spacingX.betweenChips\" | \"spacingX.globalGutter\" | \"spacingY.componentDefault\" | \"spacingY.navToTitle\" | \"spacingY.screenBottom\" | \"spacingY.betweenText\"", "default": undefined }, direction: { "type": "\"row\" | \"column\" | \"row-reverse\" | \"column-reverse\" | \"rowReverse\" | \"columnReverse\"", "default": undefined, description: <>

{"Shorthand for "}{"flexDirection"}{"."}

}, wrap: { "type": "true | \"wrap\" | \"wrap-reverse\" | \"nowrap\"", "default": undefined, description: <>

{"Shorthand for "}{"flexWrap"}{".\nIf true, flex-wrap will be set to "}{"wrap"}{"."}

}, align: { "type": "\"center\" | \"flex-start\" | \"flex-end\" | \"flexStart\" | \"flexEnd\" | \"stretch\"", "default": undefined, description: <>

{"Shorthand for "}{"alignItems"}{"."}

}, justify: { "type": "\"center\" | \"flex-start\" | \"flex-end\" | \"space-between\" | \"space-around\" | \"flexStart\" | \"flexEnd\" | \"spaceBetween\" | \"spaceAround\"", "default": undefined, description: <>

{"Shorthand for "}{"justifyContent"}{"."}

}, grow: { "type": "true | 0 | 1 | (number & {})", "default": undefined, description: <>

{"Shorthand for "}{"flexGrow"}{".\nIf true, flex-grow will be set to "}{"1"}{"."}

}, shrink: { "type": "0 | (number & {})", "default": undefined, description: <>

{"Shorthand for "}{"flexShrink"}{"."}

} }} /> file: ./content/react/components/(select-box)/check-select-box.mdx # Check Select Box 이 문서는 정리 중이에요. 문의 내용은 #_design_core 채널을 찾아주세요. ```tsx import { VStack } from "@seed-design/react"; import { CheckSelectBox, CheckSelectBoxGroup } from "seed-design/ui/select-box"; export default function CheckSelectBoxPreview() { return ( ); } ``` ## Installation ## Props ### `CheckSelectBox` ", "default": undefined }, rootRef: { "type": "Ref", "default": undefined }, disabled: { "type": "boolean", "default": undefined }, invalid: { "type": "boolean", "default": undefined }, required: { "type": "boolean", "default": undefined }, checked: { "type": "boolean", "default": undefined }, defaultChecked: { "type": "boolean", "default": undefined }, onCheckedChange: { "type": "((checked: boolean) => void)", "default": undefined }, indeterminate: { "type": "boolean", "default": undefined }, asChild: { "type": "boolean", "default": "false", description: <>

{"Whether the element should be rendered as a child of a slot."}

} }} /> ## Examples ### React Hook Form ```tsx import { HStack, VStack } from "@seed-design/react"; import { useCallback, type FormEvent } from "react"; import { useController, useForm } from "react-hook-form"; import { ActionButton } from "seed-design/ui/action-button"; import { CheckSelectBox, CheckSelectBoxGroup } from "seed-design/ui/select-box"; const POSSIBLE_FRUIT_VALUES = ["apple", "melon", "mango"] as const; type FormValues = Record<(typeof POSSIBLE_FRUIT_VALUES)[number], boolean>; export default function CheckSelectBoxReactHookForm() { const { handleSubmit, reset, setValue, control } = useForm({ defaultValues: { apple: false, melon: true, mango: false, }, }); const onValid = useCallback((data: FormValues) => { window.alert(JSON.stringify(data, null, 2)); }, []); const onReset = useCallback( (event: FormEvent) => { event.preventDefault(); reset(); }, [reset], ); return ( {POSSIBLE_FRUIT_VALUES.map((name) => { const { field: { value, ...restProps }, fieldState: { invalid }, } = useController({ name, control }); return ( ); })} 초기화 setValue("mango", true)}> mango 선택 제출 ); } ``` file: ./content/react/components/(select-box)/radio-select-box.mdx # Radio Select Box 이 문서는 정리 중이에요. 문의 내용은 #_design_core 채널을 찾아주세요. ```tsx import { VStack } from "@seed-design/react"; import { RadioSelectBoxItem, RadioSelectBoxRoot } from "seed-design/ui/select-box"; export default function RadioSelectBoxPreview() { return ( ); } ``` ## Installation ## Props ### `RadioSelectBoxRoot` void)", "default": undefined }, asChild: { "type": "boolean", "default": "false", description: <>

{"Whether the element should be rendered as a child of a slot."}

} }} /> ### `RadioSelectBoxItem` ", "default": undefined }, rootRef: { "type": "Ref", "default": undefined }, value: { "type": "string", "default": undefined }, disabled: { "type": "boolean", "default": undefined }, invalid: { "type": "boolean", "default": undefined }, asChild: { "type": "boolean", "default": "false", description: <>

{"Whether the element should be rendered as a child of a slot."}

} }} /> ## Examples ### React Hook Form ```tsx import { HStack, VStack } from "@seed-design/react"; import { useCallback, type FormEvent } from "react"; import { useController, useForm } from "react-hook-form"; import { ActionButton } from "seed-design/ui/action-button"; import { RadioSelectBoxItem, RadioSelectBoxRoot } from "seed-design/ui/select-box"; const POSSIBLE_FRUIT_VALUES = ["apple", "melon", "mango"] as const; interface FormValues { fruit: (typeof POSSIBLE_FRUIT_VALUES)[number]; } export default function RadioSelectBoxReactHookForm() { const { handleSubmit, reset, setValue, control } = useForm({ defaultValues: { fruit: "melon", }, }); const { field } = useController({ name: "fruit", control }); const onValid = useCallback((data: FormValues) => { window.alert(JSON.stringify(data, null, 2)); }, []); const onReset = useCallback( (event: FormEvent) => { event.preventDefault(); reset(); }, [reset], ); return ( {POSSIBLE_FRUIT_VALUES.map((value) => ( ))} 초기화 setValue("fruit", "mango")} > mango 선택 제출 ); } ``` file: ./content/react/components/(tabs)/chip-tabs.mdx # Chip Tabs 이 문서는 정리 중이에요. 문의 내용은 #_design_core 채널을 찾아주세요. ```tsx import * as React from "react"; import { ChipTabsList, ChipTabsRoot, ChipTabsTrigger } from "seed-design/ui/chip-tabs"; export default function ChipTabsPreview() { const [value, setValue] = React.useState("1"); return ( <> setValue(value)} > 라벨1 라벨2 라벨3 {value === "1" &&
content 1
} {value === "2" &&
content 2
} {value === "3" &&
content 3
} ); } ```
## Installation ## Props ### `ChipTabsRoot` void)", "default": undefined }, lazyMount: { "type": "boolean", "default": "false", description: <>

{"If "}{"true"}{", the component will be mounted lazily."}

}, unmountOnExit: { "type": "boolean", "default": "false", description: <>

{"If "}{"true"}{", the component will be unmounted when it's not selected."}

}, asChild: { "type": "boolean", "default": "false", description: <>

{"Whether the element should be rendered as a child of a slot."}

} }} /> ### `ChipTabsList`

{"Whether the element should be rendered as a child of a slot."}

} }} /> ### `ChipTabsTrigger`

{"Whether the element should be rendered as a child of a slot."}

} }} /> ### `ChipTabsCarousel` void)", "default": undefined } }} /> ### `ChipTabsContent`

{"Whether the element should be rendered as a child of a slot."}

}, value: { "type": "string", "default": undefined } }} /> ## Examples ### Neutral Solid ```tsx import * as React from "react"; import { ChipTabsList, ChipTabsRoot, ChipTabsTrigger } from "seed-design/ui/chip-tabs"; export default function ChipTabsVariantNeutralSolid() { const [value, setValue] = React.useState("1"); return ( <> setValue(value)} > 라벨1 라벨2 라벨3 {value === "1" &&
content 1
} {value === "2" &&
content 2
} {value === "3" &&
content 3
} ); } ```
### Brand Solid ```tsx import * as React from "react"; import { ChipTabsList, ChipTabsRoot, ChipTabsTrigger } from "seed-design/ui/chip-tabs"; export default function ChipTabsVariantBrandSolid() { const [value, setValue] = React.useState("1"); return ( <> setValue(value)} > 라벨1 라벨2 라벨3 {value === "1" &&
content 1
} {value === "2" &&
content 2
} {value === "3" &&
content 3
} ); } ```
### Stackflow ```tsx import * as React from "react"; import { ChipTabsList, ChipTabsRoot, ChipTabsTrigger } from "seed-design/ui/chip-tabs"; import AppScreen from "@/components/stackflow/ActivityLayout"; import type { ActivityComponentType } from "@stackflow/react/future"; declare module "@stackflow/config" { interface Register { "chip-tabs-basic": unknown; } } const ChipTabsBasicActivity: ActivityComponentType<"chip-tabs-basic"> = () => { const [value, setValue] = React.useState("1"); const commonStyle = { display: "flex", justifyContent: "center", alignItems: "center", backgroundColor: "#eeeeee", height: "100%", }; return ( setValue(value)} > 라벨1 라벨2 라벨3 {value === "1" &&
content 1
} {value === "2" &&
content 2
} {value === "3" &&
content 3
}
); }; export default ChipTabsBasicActivity; ```
file: ./content/react/components/(tabs)/tabs.mdx # Tabs 이 문서는 정리 중이에요. 문의 내용은 #_design_core 채널을 찾아주세요. ```tsx import { TabsContent, TabsList, TabsRoot, TabsTrigger } from "seed-design/ui/tabs"; export default function TabsPreview() { return (
라벨1 라벨2 라벨3 Content 1 Content 2 Content 3
); } const Content = (props: React.PropsWithChildren) => { return (
{props.children}
); }; ```
## Installation ## Props ### TabsRoot void)", "default": undefined }, lazyMount: { "type": "boolean", "default": "false", description: <>

{"If "}{"true"}{", the component will be mounted lazily."}

}, unmountOnExit: { "type": "boolean", "default": "false", description: <>

{"If "}{"true"}{", the component will be unmounted when it's not selected."}

}, asChild: { "type": "boolean", "default": "false", description: <>

{"Whether the element should be rendered as a child of a slot."}

} }} /> ### TabsList

{"Whether the element should be rendered as a child of a slot."}

} }} /> ### TabsTrigger ### TabsCarousel void)", "default": undefined } }} /> ### TabsContent

{"Whether the element should be rendered as a child of a slot."}

}, value: { "type": "string", "default": undefined } }} /> ## Examples ### Layout Fill (Default) ```tsx import { TabsContent, TabsList, TabsRoot, TabsTrigger } from "seed-design/ui/tabs"; export default function TabsLayoutFill() { return (
라벨1 라벨2 라벨3 Content 1 Content 2 Content 3
); } const Content = (props: React.PropsWithChildren) => { return (
{props.children}
); }; ```
### Layout Hug ```tsx import { TabsContent, TabsList, TabsRoot, TabsTrigger } from "seed-design/ui/tabs"; export default function TabsLayoutHug() { return (
라벨1 라벨2 라벨3 Content 1 Content 2 Content 3
); } const Content = (props: React.PropsWithChildren) => { return (
{props.children}
); }; ```
### Size Medium ```tsx import { TabsContent, TabsList, TabsRoot, TabsTrigger } from "seed-design/ui/tabs"; export default function TabsSizeMedium() { return (
라벨1 라벨2 라벨3 Content 1 Content 2 Content 3
); } const Content = (props: React.PropsWithChildren) => { return (
{props.children}
); }; ```
### Size Small (Default) ```tsx import { TabsContent, TabsList, TabsRoot, TabsTrigger } from "seed-design/ui/tabs"; export default function TabsSizeSmall() { return (
라벨1 라벨2 라벨3 Content 1 Content 2 Content 3
); } const Content = (props: React.PropsWithChildren) => { return (
{props.children}
); }; ```
### Swipeable ```tsx import { TabsRoot, TabsList, TabsTrigger, TabsCarousel, TabsContent } from "seed-design/ui/tabs"; export default function TabsSwipeable() { return (
라벨1 라벨2 라벨3 Content 1 Content 2 Content 3
); } const Content = (props: React.PropsWithChildren) => { return (
{props.children}
); }; ```
### Disabled ```tsx import { TabsContent, TabsList, TabsRoot, TabsTrigger } from "seed-design/ui/tabs"; export default function TabsDisabled() { return (
라벨1 라벨2 라벨3 Content 1 Content 2 Content 3
); } const Content = (props: React.PropsWithChildren) => { return (
{props.children}
); }; ```
### Notification ```tsx import { TabsContent, TabsList, TabsRoot, TabsTrigger } from "seed-design/ui/tabs"; export default function TabsNotification() { return (
라벨1 라벨2 라벨3 Content 1 Content 2 Content 3
); } const Content = (props: React.PropsWithChildren) => { return (
{props.children}
); }; ```
### Sticky List 탭이 전체화면을 차지하고, Tabs.List가 top에 고정되어 있는 경우 사용하는 예시입니다. ```tsx import { TabsContent, TabsList, TabsRoot, TabsTrigger } from "seed-design/ui/tabs"; export default function TabsStickyList() { return ( // 600은 화면 높이라고 가정합니다.
라벨1 라벨2 라벨3 Content 1 Content 2 Content 3
); } const Content = (props: React.PropsWithChildren<{ height: string }>) => { const { height, children } = props; return (
{children}
); }; ```
### Standalone TabContent를 사용하지 않고, 컨텐츠 영역을 온전히 소유하고 싶을 때 사용하는 예시입니다. 탭에서 제공하는 Swipe 기능을 사용할 수 없습니다. ```tsx import { useState } from "react"; import { TabsList, TabsRoot, TabsTrigger } from "seed-design/ui/tabs"; export default function TabsStandalone() { const [activeTab, setActiveTab] = useState("1"); return (
라벨1 라벨2 라벨3 {activeTab === "1" && (
Content 1
)} {activeTab === "2" && (
Content 2
)} {activeTab === "3" && (
Content 3
)}
); } const Content = (props: React.PropsWithChildren) => { return (
{props.children}
); }; ```
### Dynamic Height 각 탭의 높이가 다를 때, 아래의 컨텐츠를 탭 아래에 바로 맞추기 위해서 사용하는 예시입니다. 탭이 자주 바뀌고, 탭에 네트워크 요청이 많은 경우 캐싱을 잘 고려해주세요. ```tsx import { TabsCarousel, TabsContent, TabsList, TabsRoot, TabsTrigger } from "seed-design/ui/tabs"; export default function TabsDynamicHeight() { return (
라벨1 라벨2 라벨3 Content 1 Content 2 Content 3
아래 컨텐츠
); } const Content = (props: React.PropsWithChildren<{ height: string }>) => { const { height, children } = props; return (
{children}
); }; ```
### Scroll to Top ```tsx import { RefObject, useRef, useState } from "react"; import { TabsCarousel, TabsContent, TabsList, TabsRoot, TabsTrigger } from "seed-design/ui/tabs"; export default function TabsScrollTop() { const [currentTab, setCurrentTab] = useState("1"); const contentRefs: Record> = { "1": useRef(null), "2": useRef(null), }; const handleTriggerClick = (value: string) => { if (value === currentTab) { contentRefs[value].current?.scrollTo({ top: 0, behavior: "smooth" }); } }; return (
handleTriggerClick("1")} value="1"> 라벨1 handleTriggerClick("2")} value="2"> 라벨2 Content 1 Content 2
); } const Content = (props: React.PropsWithChildren<{ height: string }>) => { const { height, children } = props; return (
{children}
); }; ```
file: ./content/react/components/(text-field)/multiline-text-field.mdx # Multiline Text Field 이 문서는 정리 중이에요. 문의 내용은 #_design_core 채널을 찾아주세요. ```tsx import { TextField, TextFieldTextarea } from "seed-design/ui/text-field"; export default function MultilineTextFieldPreview() { return ( ); } ``` ## Installation ## Props ### `TextField` void)", "default": undefined }, maxGraphemeCount: { "type": "number", "default": undefined }, asChild: { "type": "boolean", "default": "false", description: <>

{"Whether the element should be rendered as a child of a slot."}

} }} /> ### `TextFieldTextarea`

{"If true, the textarea will automatically resize based on its content."}

}, asChild: { "type": "boolean", "default": "false", description: <>

{"Whether the element should be rendered as a child of a slot."}

} }} /> ## Examples ### State #### Enabled ```tsx import { HStack } from "@seed-design/react"; import { TextField, TextFieldTextarea } from "seed-design/ui/text-field"; export default function MultilineTextFieldEnabled() { return ( ); } ``` #### Disabled ```tsx import { HStack } from "@seed-design/react"; import { TextField, TextFieldTextarea } from "seed-design/ui/text-field"; export default function MultilineTextFieldDisabled() { return ( ); } ``` #### Read Only ```tsx import { HStack } from "@seed-design/react"; import { TextField, TextFieldTextarea } from "seed-design/ui/text-field"; export default function MultilineTextFieldReadOnly() { return ( ); } ``` ### Sizing #### Fixed Height ```tsx import { TextField, TextFieldTextarea } from "seed-design/ui/text-field"; export default function MultilineTextFieldSpecifiedHeight() { return ( ); } ``` #### Auto Height with Constraints ```tsx import { TextField, TextFieldTextarea } from "seed-design/ui/text-field"; export default function MultilineTextFieldConstraints() { return ( ); } ``` ### Customizable Parts #### Required Indicator ```tsx import { TextField, TextFieldTextarea } from "seed-design/ui/text-field"; export default function MultilineTextFieldRequired() { return ( ); } ``` #### Optional Indicator ```tsx import { TextField, TextFieldTextarea } from "seed-design/ui/text-field"; export default function MultilineTextFieldOptional() { return ( ); } ``` #### Grapheme Count ```tsx import { TextField, TextFieldTextarea } from "seed-design/ui/text-field"; export default function MultilineTextFieldGraphemeCount() { return ( ); } ``` ### Size #### XLarge ```tsx import { TextField, TextFieldTextarea } from "seed-design/ui/text-field"; export default function MultilineTextFieldXlarge() { return ( ); } ``` #### Large ```tsx import { TextField, TextFieldTextarea } from "seed-design/ui/text-field"; export default function MultilineTextFieldLarge() { return ( ); } ``` #### Medium ```tsx import { TextField, TextFieldTextarea } from "seed-design/ui/text-field"; export default function MultilineTextFieldMedium() { return ( ); } ``` ### Use Cases #### Form ```tsx import { HStack, VStack } from "@seed-design/react"; import { useCallback, useState, type FormEvent } from "react"; import { ActionButton } from "seed-design/ui/action-button"; import { TextField, TextFieldTextarea } from "seed-design/ui/text-field"; interface FormValues { bio: string; address: string; } type FieldErrors = Record; export default function MultilineTextFieldForm() { const [formValues, setFormValues] = useState({ bio: "", address: "", }); const [fieldErrors, setFieldStates] = useState({ bio: null, address: null, }); const validateForm = useCallback((): boolean => { let isValid = true; const newFieldErrors: FieldErrors = { bio: null, address: null, }; // Name validation if (!formValues.bio) { newFieldErrors.bio = "필수 입력 항목입니다"; isValid = false; } if (!formValues.address.startsWith("대한민국")) { newFieldErrors.address = "대한민국으로 시작해주세요"; isValid = false; } if (!formValues.address) { newFieldErrors.address = "필수 입력 항목입니다"; isValid = false; } setFieldStates(newFieldErrors); return isValid; }, [formValues]); const handleSubmit = useCallback( (event: FormEvent) => { event.preventDefault(); if (validateForm()) { window.alert(JSON.stringify(formValues, null, 2)); } }, [formValues, validateForm], ); const handleReset = useCallback((event: FormEvent) => { event.preventDefault(); setFormValues({ bio: "", address: "" }); setFieldStates({ bio: null, address: null }); }, []); const handleNameChange = (value: string) => { setFormValues((prev) => ({ ...prev, bio: value })); setFieldStates((prev) => ({ ...prev, name: null })); }; const handleAddressChange = (value: string) => { setFormValues((prev) => ({ ...prev, address: value })); setFieldStates((prev) => ({ ...prev, address: null })); }; return ( handleNameChange(value)} {...(fieldErrors.bio && { invalid: true, errorMessage: fieldErrors.bio })} > handleAddressChange(slicedValue)} {...(fieldErrors.address && { invalid: true, errorMessage: fieldErrors.address })} > 초기화 제출 ); } ``` #### React Hook Form ```tsx import { HStack, VStack } from "@seed-design/react"; import { useCallback, type FormEvent, type KeyboardEvent } from "react"; import { useController, useForm } from "react-hook-form"; import { ActionButton } from "seed-design/ui/action-button"; import { TextField, TextFieldTextarea } from "seed-design/ui/text-field"; interface FormValues { bio: string; address: string; } export default function MultilineTextFieldReactHookForm() { const { handleSubmit, reset, control } = useForm({ defaultValues: { bio: "", address: "", }, shouldFocusError: true, }); const { field: bioField, fieldState: bioFieldState } = useController({ name: "bio", control, rules: { required: "필수 입력 항목입니다", }, }); const { field: { onChange: addressOnChange, ...addressField }, fieldState: addressFieldState, } = useController({ name: "address", control, rules: { required: "필수 입력 항목입니다", pattern: { value: /^대한민국/, message: "대한민국으로 시작해주세요" }, }, }); const onValid = useCallback((data: FormValues) => { window.alert(JSON.stringify(data, null, 2)); }, []); const onReset = useCallback( (event: FormEvent) => { event.preventDefault(); reset(); }, [reset], ); const onMetaReturn = useCallback( (event: KeyboardEvent) => { if (event.key === "Enter" && (event.metaKey || event.ctrlKey)) { event.preventDefault(); handleSubmit(onValid)(); } }, [handleSubmit, onValid], ); return ( addressOnChange(slicedValue)} required {...addressField} > 초기화 제출 ); } ``` #### Formatting ```tsx import { useMemo, useState } from "react"; import { TextField, TextFieldTextarea } from "seed-design/ui/text-field"; export default function MultilineTextFieldFormatting() { const [value, setValue] = useState(""); const formattedValue = useMemo( () => value .split("") .filter((char) => char !== " ") .join(""), [value], ); return ( setValue(value)} > ); } ``` #### Slicing ```tsx import { useState } from "react"; import { TextField, TextFieldTextarea } from "seed-design/ui/text-field"; export default function MultilineTextFieldSlicing() { const [value, setValue] = useState(""); return ( setValue(slicedValue)} > ); } ``` file: ./content/react/components/(text-field)/text-field.mdx # Text Field 이 문서는 정리 중이에요. 문의 내용은 #_design_core 채널을 찾아주세요. ```tsx import { TextField, TextFieldInput } from "seed-design/ui/text-field"; export default function TextFieldPreview() { return ( ); } ``` ## Installation ## Props ### `TextField` void)", "default": undefined }, maxGraphemeCount: { "type": "number", "default": undefined }, asChild: { "type": "boolean", "default": "false", description: <>

{"Whether the element should be rendered as a child of a slot."}

} }} /> ### `TextFieldInput`

{"Whether the element should be rendered as a child of a slot."}

} }} /> ## Examples ### State #### Enabled ```tsx import { HStack } from "@seed-design/react"; import { TextField, TextFieldInput } from "seed-design/ui/text-field"; export default function TextFieldEnabled() { return ( ); } ``` #### Disabled ```tsx import { HStack } from "@seed-design/react"; import { TextField, TextFieldInput } from "seed-design/ui/text-field"; export default function TextFieldDisabled() { return ( ); } ``` #### Read Only ```tsx import { HStack } from "@seed-design/react"; import { TextField, TextFieldInput } from "seed-design/ui/text-field"; export default function TextFieldReadOnly() { return ( ); } ``` ### Customizable Parts #### Prefix ```tsx import { IconMagnifyingglassLine } from "@karrotmarket/react-monochrome-icon"; import { HStack } from "@seed-design/react"; import { TextField, TextFieldInput } from "seed-design/ui/text-field"; export default function TextFieldPrefix() { return ( } > ); } ``` #### Suffix ```tsx import { IconWonLine } from "@karrotmarket/react-monochrome-icon"; import { HStack } from "@seed-design/react"; import { TextField, TextFieldInput } from "seed-design/ui/text-field"; export default function TextFieldSuffix() { return ( }> ); } ``` #### Both Affixes ```tsx import { IconPlusCircleLine, IconWonLine } from "@karrotmarket/react-monochrome-icon"; import { HStack } from "@seed-design/react"; import { TextField, TextFieldInput } from "seed-design/ui/text-field"; export default function TextFieldSuffix() { return ( } suffixIcon={} > ); } ``` #### Indicator ```tsx import { TextField, TextFieldInput } from "seed-design/ui/text-field"; export default function TextFieldIndicator() { return ( ); } ``` #### Grapheme Count ```tsx import { TextField, TextFieldInput } from "seed-design/ui/text-field"; export default function TextFieldGraphemeCount() { return ( ); } ``` ### Size #### XLarge ```tsx import { TextField, TextFieldInput } from "seed-design/ui/text-field"; export default function TextFieldXlarge() { return ( ); } ``` #### Large ```tsx import { TextField, TextFieldInput } from "seed-design/ui/text-field"; export default function TextFieldLarge() { return ( ); } ``` #### Medium ```tsx import { TextField, TextFieldInput } from "seed-design/ui/text-field"; export default function TextFieldMedium() { return ( ); } ``` ### Use Cases #### Form ```tsx import { HStack, VStack } from "@seed-design/react"; import { useCallback, useState, type FormEvent } from "react"; import { ActionButton } from "seed-design/ui/action-button"; import { TextField, TextFieldInput } from "seed-design/ui/text-field"; interface FormValues { name: string; address: string; } type FieldErrors = Record; export default function TextFieldForm() { const [formValues, setFormValues] = useState({ name: "", address: "", }); const [fieldErrors, setFieldStates] = useState({ name: null, address: null, }); const validateForm = useCallback((): boolean => { let isValid = true; const newFieldErrors: FieldErrors = { name: null, address: null, }; // Name validation if (!formValues.name) { newFieldErrors.name = "필수 입력 항목입니다"; isValid = false; } if (!formValues.address.startsWith("대한민국")) { newFieldErrors.address = "대한민국으로 시작해주세요"; isValid = false; } if (!formValues.address) { newFieldErrors.address = "필수 입력 항목입니다"; isValid = false; } setFieldStates(newFieldErrors); return isValid; }, [formValues]); const handleSubmit = useCallback( (event: FormEvent) => { event.preventDefault(); if (validateForm()) { window.alert(JSON.stringify(formValues, null, 2)); } }, [formValues, validateForm], ); const handleReset = useCallback((event: FormEvent) => { event.preventDefault(); setFormValues({ name: "", address: "" }); setFieldStates({ name: null, address: null }); }, []); const handleNameChange = (value: string) => { setFormValues((prev) => ({ ...prev, name: value })); setFieldStates((prev) => ({ ...prev, name: null })); }; const handleAddressChange = (value: string) => { setFormValues((prev) => ({ ...prev, address: value })); setFieldStates((prev) => ({ ...prev, address: null })); }; return ( handleNameChange(value)} {...(fieldErrors.name && { invalid: true, errorMessage: fieldErrors.name })} > handleAddressChange(slicedValue)} {...(fieldErrors.address && { invalid: true, errorMessage: fieldErrors.address })} > 초기화 제출 ); } ``` #### React Hook Form ```tsx import { HStack, VStack } from "@seed-design/react"; import { useCallback, type FormEvent } from "react"; import { useController, useForm } from "react-hook-form"; import { ActionButton } from "seed-design/ui/action-button"; import { TextField, TextFieldInput } from "seed-design/ui/text-field"; interface FormValues { name: string; address: string; } export default function TextFieldReactHookForm() { const { handleSubmit, reset, control } = useForm({ defaultValues: { name: "", address: "", }, }); const { field: nameField, fieldState: nameFieldState } = useController({ name: "name", control, rules: { required: "필수 입력 항목입니다", }, }); const { field: { onChange: addressOnChange, ...addressField }, fieldState: addressFieldState, } = useController({ name: "address", control, rules: { required: "필수 입력 항목입니다", pattern: { value: /^대한민국/, message: "대한민국으로 시작해주세요" }, }, }); const onValid = useCallback((data: FormValues) => { window.alert(JSON.stringify(data, null, 2)); }, []); const onReset = useCallback( (event: FormEvent) => { event.preventDefault(); reset(); }, [reset], ); return ( addressOnChange(slicedValue)} required {...addressField} > 초기화 제출 ); } ``` #### Number Formatting ```tsx import { useMemo, useState } from "react"; import { TextField, TextFieldInput } from "seed-design/ui/text-field"; export default function TextFieldNumberFormatting() { const [value, setValue] = useState("1000"); const formattedValue = useMemo(() => { if (value === "") return value; const number = Number(value.replace(/,/g, "")); if (Number.isNaN(number)) return ""; return number.toLocaleString(); }, [value]); return ( setValue(value)} > ); } ``` #### Slicing ```tsx import { useState } from "react"; import { TextField, TextFieldInput } from "seed-design/ui/text-field"; export default function TextFieldSlicing() { const [value, setValue] = useState(""); return ( setValue(slicedValue)} > ); } ``` file: ./content/react/components/(typography)/text.mdx # Text 이 문서는 정리 중이에요. 문의 내용은 #_design_core 채널을 찾아주세요. ```tsx import { Flex, Text } from "@seed-design/react"; export default function TextPreview() { return ( 다람쥐 헌 쳇바퀴에 타고파 다람쥐 헌 쳇바퀴에 타고파 다람쥐 헌 쳇바퀴에 타고파 다람쥐 헌 쳇바퀴에 타고파 다람쥐 헌 쳇바퀴에 타고파 다람쥐 헌 쳇바퀴에 타고파 다람쥐 헌 쳇바퀴에 타고파 다람쥐 헌 쳇바퀴에 타고파 다람쥐 헌 쳇바퀴에 타고파 다람쥐 헌 쳇바퀴에 타고파 ); } ``` ## Usage ```tsx import { Text } from "@seed-design/react"; ``` ```tsx ``` ## Props

{"The element to render as"}

}, color: { "type": "ScopedColorFg | ScopedColorPalette", "default": undefined, description: <>

{"The color of the text."}

}, fontSize: { "type": "\"t1\" | \"t2\" | \"t3\" | \"t4\" | \"t5\" | \"t6\" | \"t7\" | \"t8\" | \"t9\" | \"t10\" | \"t2Static\" | \"t5Static\" | \"t6Static\"", "default": undefined, description: <>

{"The font size of the text. Partially overrides the textStyle."}

}, lineHeight: { "type": "\"t1\" | \"t2\" | \"t3\" | \"t4\" | \"t5\" | \"t6\" | \"t7\" | \"t8\" | \"t9\" | \"t10\"", "default": undefined, description: <>

{"The line height of the text. Partially overrides the textStyle."}

}, fontWeight: { "type": "\"regular\" | \"medium\" | \"bold\"", "default": undefined, description: <>

{"The font weight of the text. Partially overrides the textStyle."}

}, maxLines: { "type": "number", "default": undefined, description: <>

{"The maximum number of lines to display. If the text overflows, it will be truncated."}

}, align: { "type": "\"left\" | \"center\" | \"right\"", "default": undefined, description: <>

{"The alignment of the text."}

}, textStyle: { "type": "\"screenTitle\" | \"articleBody\" | \"t1Regular\" | \"t1Medium\" | \"t1Bold\" | \"t2Regular\" | \"t2Medium\" | \"t2Bold\" | \"t3Regular\" | \"t3Medium\" | \"t3Bold\" | \"t4Regular\" | \"t4Medium\" | \"t4Bold\" | ... 12 more ...", "default": "t5Regular" } }} /> file: ./content/react/components/concepts/composition.mdx # Composition 컴포넌트를 조합하여 복잡한 UI를 구성하는 방법과 원칙을 설명합니다. ## `as` Prop `as` prop은 React 컴포넌트가 렌더링하는 기본 HTML 요소를 변경하는 데 사용됩니다. 컴포넌트의 기능은 유지하면서 기본 요소를 변경할 수 있는 간단한 방법을 제공합니다. ```jsx 단락 텍스트 인라인 텍스트 제목 텍스트 ``` ## `asChild` Prop `asChild` prop은 컴포넌트의 기능을 자식 요소에 합성하는 데 사용됩니다. 이를 활용해 HTML 태그를 변경하거나, 다른 컴포넌트에 기능을 주입할 수 있습니다. [Radix UI](https://www.radix-ui.com/primitives/docs/utilities/slot)에서 제공하는 asChild 패턴과 동일한 기능을 제공합니다. ### 요소 타입 변경하기 ```jsx // FAB는 기본적으로 button 태그를 사용하지만, asChild를 사용해 링크로 변경할 수 있습니다. } /> ``` > 기본 요소 타입을 변경하는 경우, 해당 요소가 접근성을 유지하고 올바르게 작동하는지 확인하는 것은 개발자의 책임입니다. 예를 들어, 버튼을 `div`로 변경하면 더 이상 키보드로 접근할 수 없게 될 수 있습니다. ### React 컴포넌트와 조합하기 ```jsx // 라우터 라이브러리에서 제공하는 Link 컴포넌트에 기능을 합성할 수 있습니다. ``` `asChild`를 사용하여 컴포넌트를 조합할 때는 두 가지 원칙을 따라야 합니다. #### 1. 컴포넌트는 props를 전개해야 합니다 asChild는 기능을 제공하고 접근성을 유지하기 위한 고유의 props와 이벤트 핸들러를 전달합니다. 컴포넌트가 이러한 props를 지원하지 않으면 제대로 작동하지 않습니다. ```jsx // 잘못된 방법 const MyButton = () =>