react-odyssey
Version:
React components for Odyssey design system
22 lines (21 loc) • 804 B
TypeScript
import React, { ReactNode, ComponentProps } from 'react';
declare type OurFieldSetProps = {
aside?: ReactNode;
error?: ReactNode;
htmlFor?: string;
label?: ReactNode;
legend?: ReactNode;
optional?: boolean;
};
export interface InputProps extends ComponentProps<'input'>, OurFieldSetProps {
ref?: React.Ref<HTMLInputElement>;
}
export interface InputRawProps extends ComponentProps<'input'> {
error?: boolean;
}
export declare const InputRaw: React.ComponentType<InputRawProps>;
export declare const InputWithLabel: React.ComponentType<InputProps>;
export declare const InputFieldSet: React.ComponentType<InputProps>;
export declare const TextInput: React.FunctionComponent<InputProps>;
export declare const TextInputRaw: React.FunctionComponent<InputRawProps>;
export {};