UNPKG

@leebonggu/component-library

Version:
29 lines (22 loc) 1.39 kB
import * as React from 'react'; import React__default, { ComponentPropsWithoutRef, PropsWithChildren } from 'react'; interface ButtonProps extends ComponentPropsWithoutRef<'button'> { variant?: 'primary' | 'secondary' | 'danger'; size?: 'sm' | 'md' | 'lg'; isFullWidth?: boolean; disabled?: boolean; } declare const Button: React__default.ForwardRefExoticComponent<ButtonProps & React__default.RefAttributes<HTMLButtonElement>>; declare const Label: React__default.ForwardRefExoticComponent<Omit<React__default.DetailedHTMLProps<React__default.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref"> & React__default.RefAttributes<HTMLLabelElement>>; declare const Input: React__default.ForwardRefExoticComponent<Omit<React__default.DetailedHTMLProps<React__default.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React__default.RefAttributes<HTMLInputElement>>; interface TextareaProps extends ComponentPropsWithoutRef<'textarea'> { isResizable?: boolean; } declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>; interface FieldComposition { Label: typeof Label; Input: typeof Input; Textarea: typeof Textarea; } declare const Field: React__default.FC<PropsWithChildren> & FieldComposition; export { Button, type ButtonProps, Field, type FieldComposition };