Pluto Design System
Components

Input

9 slot TextField — leading/trailing/reset/invalid/positive 포함

9-slot 구조의 TextField. TextFieldButton / TextFieldContent 서브컴포넌트는 아직 미포함.

사용

import { Input } from "@fluxloop-ai/pds-ui/components/input";

<Input placeholder="프로젝트 이름" />
<Input invalid defaultValue="잘못된 값" />
<Input leadingContent={<Icon icon={Search} />} />

Basic

Size

State

invalid / positive / readOnly / disabled. 포커스 시 reset 버튼이 표시된다.

Slots

leadingContent · trailingContent 로 아이콘/배지 삽입.

@pluto.com

Props

Prop타입기본설명
sizesm | md | lgmd높이 + 폰트 크기
invalidbooleanfalse빨간 링 + invalid 아이콘
positivebooleanfalse파란 체크 아이콘
disabledbooleanfalse
readOnlybooleanfalsereset 버튼 숨김
leadingContentReactNode좌측 slot
trailingContentReactNode우측 slot (reset 앞)
trailingButtonReactNode오른쪽 붙는 버튼 슬롯
widthCSSProperties["width"]wrapper 너비
onReset(prev: string) => voidreset 콜백

9 Slot 구조

wrapperfield[leading, input, invalidIcon | positiveIcon, reset, trailing] + trailingButton

Slot역할
wrapper외곽 컨테이너, 배경/그림자/블러
field내부 border + focus ring 담당
leading왼쪽 아이콘/배지
input실제 <input>
trailing오른쪽 커스텀 slot
trailingButton오른쪽 붙는 버튼 (미래 InputButton)
reset포커스 시 나타나는 ⓧ 초기화
invalidIconinvalid ⚠ 아이콘
positiveIconpositive ✓ 아이콘

Registry 설치

npx shadcn add https://pds.pluto.com/r/input