Alert
Alert (알림)
Alert 컴포넌트는 사용자에게 중요한 정보나 상태를 알려 주는 데 사용합니다.
출처: Park UI
본문
Installation
설치:
import { Alert } from '@/components/ui'
Usage
용법:
<Alert.Root>
<Alert.Indicator />
<Alert.Content>
<Alert.Title />
<Alert.Description />
</Alert.Content>
</Alert.Root>
Examples
예시를 살펴보겠습니다.
Description
Alert.Description 컴포넌트를 렌더링하면 알림에 추가적인 설명 문맥을 제공할 수 있습니다.
Status
status prop을 전달하면 알림의 상태를 바꿀 수 있습니다. 이는 색상 체계와 사용되는 아이콘에 영향을 줍니다.
Variants
variant prop을 사용하면 알림의 시각적 스타일을 바꿀 수 있습니다.
Sizes
size prop을 사용하면 알림의 크기를 바꿀 수 있습니다.
Closable
Alert를 닫기 버튼과 함께 구성하는 예시를 보여 드리겠습니다.
Closed Component
버튼으로 열 수 있는 닫힌 상태의 알림 예시입니다.
Props
속성(Props)에 대한 자세한 내용은 아래를 참고하세요.