@crossed/ui
Version:
A universal & performant styling library for React Native, Next.js & React
82 lines • 1.86 kB
TypeScript
/**
* Copyright (c) Paymium.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root of this projects source tree.
*/
import { TextInput, type TextInputProps } from 'react-native';
import { type ReactNode } from 'react';
import { CrossedMethods } from '@crossed/styled';
export type InputProps = Omit<TextInputProps, 'editable' | 'onChange' | 'style'> & {
/**
* Label of input
*/
label?: string;
/**
* Render clearable button if value is filled
*/
clearable?: boolean;
elementLeft?: ReactNode;
elementRight?: ReactNode;
/**
* Error to render
*/
error?: string;
/**
* Description of input
*/
description?: string;
/**
* Extra of label
*/
extra?: string;
/**
* Disabled state
*/
disabled?: boolean;
/**
* style to extends
*/
style?: CrossedMethods<any>;
/**
* formField style to extends
*/
formFieldStyle?: CrossedMethods<any>;
};
export declare const Input: import("react").ForwardRefExoticComponent<Omit<TextInputProps, "style" | "onChange" | "editable"> & {
/**
* Label of input
*/
label?: string;
/**
* Render clearable button if value is filled
*/
clearable?: boolean;
elementLeft?: ReactNode;
elementRight?: ReactNode;
/**
* Error to render
*/
error?: string;
/**
* Description of input
*/
description?: string;
/**
* Extra of label
*/
extra?: string;
/**
* Disabled state
*/
disabled?: boolean;
/**
* style to extends
*/
style?: CrossedMethods<any>;
/**
* formField style to extends
*/
formFieldStyle?: CrossedMethods<any>;
} & import("react").RefAttributes<TextInput>>;
//# sourceMappingURL=Input.d.ts.map