@jk-core/components
Version:
components for jk
34 lines (33 loc) • 953 B
TypeScript
interface DropDownProps {
/**
* 드롭다운 목록
*/
list: string[];
/**
* 드롭다운 버튼에 표시될 내용
*/
value?: string;
/**
* 선택된 아이템을 처리하는 함수
*/
onSelect: (item: string, index: number) => void;
/**
* 필터링 기능 활성화 여부
*/
filter?: boolean;
/**
* 드롭다운의 플레이스홀더 텍스트
*/
placeholder?: string;
/**
* 드롭다운의 스타일
*/
style?: React.CSSProperties;
}
/**
* 드롭다운 컴포넌트
* 사용자가 선택할 수 있는 목록을 제공하며, 선택된 아이템을 표시합니다.
* 필터링 기능을 활성화할 수 있으며, 플레이스홀더 텍스트를 설정할 수 있습니다.
*/
export default function DropDown({ list, value, onSelect, filter, placeholder, style }: DropDownProps): import("react/jsx-runtime").JSX.Element;
export {};