4.1.0 • Published 3 years ago
@primitives/input v4.1.0
Input
is an element that provides a space where the user can enter text. Only the text properties of it can be styled.
Editing text handler
onChange
:
Focus-like handlers
onFocus
: triggered when the component gets the focusonBlur
: triggered when the component looses the focus
These map to the same corresponding props in Web and in React Native.
Raw type definitions
export type TInputProps = {
id?: string,
isDisabled?: boolean,
color?: string,
family?: string,
height?: number,
weight?: number,
size?: number,
lineHeight?: number,
letterSpacing?: number,
paddingBottom?: number,
paddingLeft?: number,
paddingRight?: number,
paddingTop?: number,
shouldStretch?: boolean,
value: string,
width?: number,
onChange: (newValue: string) => void,
onSubmit?: () => void,
onFocus?: () => void,
onBlur?: () => void,
}
4.1.0
3 years ago
4.0.2
3 years ago
4.0.1
4 years ago
4.0.0
4 years ago
3.1.0
4 years ago
3.0.3
4 years ago
3.0.2
4 years ago
3.0.1
4 years ago
3.0.0
4 years ago
2.0.0
4 years ago
1.0.0
4 years ago
0.7.0
4 years ago
0.6.1
5 years ago
0.6.0
5 years ago
0.5.2
5 years ago
0.5.1
5 years ago
0.5.0
5 years ago
0.4.0
5 years ago
0.3.1
5 years ago
0.3.0
5 years ago
0.2.0
5 years ago
0.1.5
5 years ago
0.1.4
5 years ago
0.1.3
5 years ago
0.1.2
5 years ago
0.1.1
5 years ago
0.1.0
5 years ago