다른 컴포넌트 보기
COMPONENT / 기본 요소
Text
읽기 편한 텍스트와 타이포그래피.
Make room for good things.
작은 디테일이 좋은 경험을 만듭니다.PLAYGROUND미리보기 안의 요소를 직접 조작해 보세요.
사용 코드
import * as W from 'woosign-system';
// ThemeProvider와 ToastProvider 안에서 렌더링하세요.
export function Example() {
return (
<div>
<W.Text variant="h2">Make room for good things.</W.Text>
<W.Text variant="muted">작은 디테일이 좋은 경험을 만듭니다.</W.Text>
</div>
);
}
API
타입 정의 ↗| Prop | Type | 필수 |
|---|---|---|
variant | TextVariant | — |
weight | TextWeight | — |
align | TextAlign | — |
color | string | — |
muted | boolean | — |
children | ReactNode | — |
공통 API 기준입니다. 플랫폼별 style, className 및 세부 타입은 타입 정의에서 확인하세요.
← 전체 컴포넌트로 돌아가기