ds-smart-ui
Version:
Smart UI v1.0.5 — A production-ready React component library by PT Praisindo Teknologi. Covers inputs, navigation, data display, feedback, and layout with a unified design system, semantic Typography tokens, and full Storybook documentation.
31 lines (30 loc) • 977 B
TypeScript
import { ChangeEvent, FC } from 'react';
export type SearchBarSize = "sm" | "md" | "lg";
export type SearchBarVariant = "default" | "select";
export type SearchBarRounded = "none" | "sm" | "md" | "lg" | "full";
export interface SearchBarSelectOption {
label: string;
value: string;
}
export interface SearchBarProps {
variant?: SearchBarVariant;
size?: SearchBarSize;
rounded?: SearchBarRounded;
value?: string;
placeholder?: string;
onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
onSubmit?: (value: string) => void;
onClear?: () => void;
selectOptions?: SearchBarSelectOption[];
selectValue?: string;
onChangeSelect?: (value: string) => void;
showSelectNoneOption?: boolean;
recent?: string[];
onRemoveRecent?: (val: string) => void;
onClearRecent?: () => void;
className?: string;
disabled?: boolean;
id?: string;
}
declare const SearchBar: FC<SearchBarProps>;
export default SearchBar;