다른 컴포넌트 보기

COMPONENT / 기본 요소

Pill

둥근 형태의 선택 요소.

LIVE PREVIEWWEB
PLAYGROUND

사용 코드

import { useState } from 'react';
import * as W from 'woosign-system';

// ThemeProvider와 ToastProvider 안에서 렌더링하세요.
export function Example() {
  const [checked, setChecked] = useState(false);
  return (
    <W.Pill
      active={checked}
      disabled={false}
      onPress={() => setChecked(!checked)}
    >
      이번 주
    </W.Pill>
  );
}
PropType필수
activeboolean—
disabledboolean—
childrenReactNode—
onPress() => void—

공통 API 기준입니다. 플랫폼별 style, className 및 세부 타입은 타입 정의에서 확인하세요.

← 전체 컴포넌트로 돌아가기