TextField

This commit is contained in:
Eric Bailey
2024-07-11 12:02:48 -05:00
parent 7fdbe5cc85
commit d846fb4847
2 changed files with 13 additions and 6 deletions
+3 -6
View File
@@ -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,
}, },
] ]
+10
View File
@@ -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>