@thinkbuff/figma-react
Version:
A Figma React UI components for creating plugins and widgets
19 lines (18 loc) • 779 B
TypeScript
import { InputVariantsProps } from './input-variants';
interface InputProps extends React.ComponentPropsWithRef<'input'>, InputVariantsProps {
invalid?: boolean;
disabled?: boolean;
}
declare const Input: import('react').ForwardRefExoticComponent<Omit<InputProps, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
interface InputSlotProps extends React.ComponentPropsWithoutRef<'div'> {
/**
* The side of the Input that the icon or button is on.
*/
side?: 'left' | 'right';
}
/**
* Contains icons or buttons associated with an Input.
*/
declare const InputSlot: import('react').ForwardRefExoticComponent<InputSlotProps & import('react').RefAttributes<HTMLDivElement>>;
export { Input, InputSlot };
export type { InputProps, InputSlotProps };