다른 컴포넌트 보기

COMPONENT / 레이아웃

ListItem

반복되는 정보를 정리하는 행.

LIVE PREVIEWWEB
PLAYGROUND미리보기 안의 요소를 직접 조작해 보세요.

사용 코드

import * as W from 'woosign-system';

// ThemeProvider와 ToastProvider 안에서 렌더링하세요.
export function Example() {
  const toast = W.useToast();
  return (
    <W.ListItem
      leading={<W.Avatar name="Woo" />}
      title="WooBottle"
      description="좋은 경험을 함께 만듭니다"
      trailing="↗"
      onPress={() => toast.success({ title: '프로필을 선택했어요.' })}
    />
  );
}
PropType필수
titlestring●
descriptionstring—
leadingReactNode—
trailingReactNode—
onPress() => void—
disabledboolean—

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

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