TextField
This commit is contained in:
@@ -101,16 +101,13 @@ export function useSharedInputStyles() {
|
|||||||
]
|
]
|
||||||
const error: ViewStyle[] = [
|
const error: ViewStyle[] = [
|
||||||
{
|
{
|
||||||
backgroundColor:
|
backgroundColor: t.palette.negative_25,
|
||||||
t.name === 'light' ? t.palette.negative_25 : t.palette.negative_900,
|
borderColor: t.palette.negative_300,
|
||||||
borderColor:
|
|
||||||
t.name === 'light' ? t.palette.negative_300 : t.palette.negative_800,
|
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
const errorHover: ViewStyle[] = [
|
const errorHover: ViewStyle[] = [
|
||||||
{
|
{
|
||||||
backgroundColor:
|
backgroundColor: t.palette.negative_25,
|
||||||
t.name === 'light' ? t.palette.negative_25 : t.palette.negative_900,
|
|
||||||
borderColor: t.palette.negative_500,
|
borderColor: t.palette.negative_500,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -41,6 +41,16 @@ export function Forms() {
|
|||||||
/>
|
/>
|
||||||
</TextField.Root>
|
</TextField.Root>
|
||||||
|
|
||||||
|
<TextField.Root>
|
||||||
|
<TextField.Icon icon={Globe} />
|
||||||
|
<TextField.Input
|
||||||
|
value={value}
|
||||||
|
onChangeText={setValue}
|
||||||
|
label="Text field"
|
||||||
|
isInvalid
|
||||||
|
/>
|
||||||
|
</TextField.Root>
|
||||||
|
|
||||||
<View style={[a.w_full]}>
|
<View style={[a.w_full]}>
|
||||||
<TextField.LabelText>Text field</TextField.LabelText>
|
<TextField.LabelText>Text field</TextField.LabelText>
|
||||||
<TextField.Root>
|
<TextField.Root>
|
||||||
|
|||||||
Reference in New Issue
Block a user