@atlrdsgn/kit
Version:
An ever–expanding library of React components, primitives, and tools
22 lines (21 loc) • 1.01 kB
TypeScript
import { InputProps } from './input.types';
import { default as React } from 'react';
import * as LABL from '@radix-ui/react-label';
/** ---------------- label ---------------------- */
type InputLabelPrmitiveProps = React.HTMLAttributes<HTMLLabelElement> & React.ComponentPropsWithRef<typeof LABL.Root>;
export type InputLabelProps = InputLabelPrmitiveProps;
declare const InputLabel: React.ForwardRefExoticComponent<Omit<InputLabelPrmitiveProps, "ref"> & React.RefAttributes<HTMLLabelElement>>;
/** ---------------- flexbox ---------------------- */
type FlexProps = React.HTMLAttributes<HTMLDivElement> & {
children?: React.ReactNode;
className?: string;
};
declare const InputWrapper: React.FC<FlexProps>;
/** ---------------- export input ---------------------- */
export declare const Input: React.FC<InputProps> & {
Wrapper: typeof InputWrapper;
Label: typeof InputLabel;
};
export type InputElement = keyof typeof Input;
export type { InputProps };
//# sourceMappingURL=input.d.ts.map