3.1.0 • Published 3 years ago
@primitives/select v3.1.0
Select
is an element that provides a space where the user can select a value from a list of options.
Option selection handler
onChange
: triggered when a different option is selected
Press handlers
onPressIn
: triggered when the component is pressedonPressOut
: triggered when the component is no longer pressed
Focus-like handlers
onFocus
: triggered when the component gets the focusonBlur
: triggered when the component loses the focus
These map to the same corresponding props in Web and in React Native.
Raw type definitions
export type TSelectProps = {
id?: string
isDisabled?: boolean
isHidden?: boolean
color?: string
family?: string
weight?: number
size?: number
lineHeight?: number
letterSpacing?: number
firstNoneSelectableOption?: string
paddingBottom?: number
paddingLeft?: number
paddingRight?: number
paddingTop?: number
shouldStretch?: boolean
value: string
zIndex?: number
onChange: (newValue: string) => void
onFocus?: () => void
onBlur?: () => void
onPressIn?: () => void
onPressOut?: () => void
}
3.1.0
3 years ago
3.0.1
3 years ago
3.0.0
4 years ago
2.0.3
4 years ago
2.0.2
4 years ago
2.0.1
4 years ago
2.0.0
4 years ago
1.0.0
4 years ago
0.5.2
5 years ago
0.5.1
5 years ago
0.5.0
5 years ago
0.4.3
5 years ago
0.4.2
5 years ago
0.4.1
5 years ago
0.4.0
5 years ago
0.3.1
5 years ago
0.3.0
5 years ago
0.2.2
5 years ago
0.2.1
5 years ago
0.2.0
5 years ago
0.1.6
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