@dabapps/roe
Version:
A collection of React components, styles, mixins, and atomic CSS classes to aid with the development of web applications.
43 lines (42 loc) • 1.14 kB
TypeScript
import * as React from 'react';
import { OptionalComponentPropAndHTMLAttributes } from '../../types';
export declare type InputWithPrefixSuffixProps = {
/**
* Content to display to the left of the input.
*/
prefix?: React.ReactChild;
/**
* Content to display to the right of the input.
*/
suffix?: React.ReactChild;
/**
* Set the style `display: block;` so the input group fills its parent.
*/
block?: boolean;
/**
* Class name to apply to the input.
*/
inputClassName?: string;
/**
* Class name to apply to the prefix.
*/
prefixClassName?: string;
/**
* Class name to apply to the suffix.
*/
suffixClassName?: string;
/**
* Input type
*/
type?: string;
/**
* Input value
*/
value?: string | string[] | number;
/**
* Input change handler
*/
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
} & OptionalComponentPropAndHTMLAttributes;
declare const _default: React.MemoExoticComponent<(props: InputWithPrefixSuffixProps) => JSX.Element>;
export default _default;