File tree Expand file tree Collapse file tree 5 files changed +14
-18
lines changed
example/storybook/stories/components/primitives/Input Expand file tree Collapse file tree 5 files changed +14
-18
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { Input, Box } from 'native-base';
4
4
export const Example = ( ) => {
5
5
return (
6
6
< Box alignItems = "center" >
7
- < Input mx = "3" placeholder = "Input" w = "75%" maxWidth = "300px " />
7
+ < Input mx = "3" placeholder = "Input" w = "100% " />
8
8
</ Box >
9
9
) ;
10
10
} ;
Original file line number Diff line number Diff line change @@ -8,8 +8,7 @@ export const Example = () => {
8
8
< Box alignItems = "center" >
9
9
< Input
10
10
value = { value }
11
- w = "75%"
12
- maxW = "300px"
11
+ w = "100%"
13
12
onChangeText = { handleChange }
14
13
placeholder = "Value Controlled Input"
15
14
/>
Original file line number Diff line number Diff line change @@ -9,8 +9,7 @@ export const Example = () => {
9
9
< Box alignItems = "center" >
10
10
< Input
11
11
type = { show ? 'text' : 'password' }
12
- w = "75%"
13
- maxW = "300px"
12
+ w = "100%"
14
13
py = "0"
15
14
InputRightElement = {
16
15
< Button
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
- import { Input , Stack , Center } from 'native-base' ;
2
+ import { Input , Stack } from 'native-base' ;
3
3
4
4
export const Example = ( ) => {
5
5
return (
6
- < Center >
7
- < Stack mt = { 3 } space = { 4 } w = "75%" maxW = "300px" >
8
- < Input size = "xs" placeholder = "xs Input" />
9
- < Input size = "sm" placeholder = "sm Input" />
10
- < Input size = "md" placeholder = "md Input" />
11
- < Input size = "lg" placeholder = "lg Input" />
12
- < Input size = "xl" placeholder = "xl Input" />
13
- < Input size = "2xl" placeholder = "2xl Input" />
14
- </ Stack >
15
- </ Center >
6
+ < Stack space = { 4 } w = "75%" maxW = "300px" >
7
+ < Input size = "xs" placeholder = "xs Input" />
8
+ < Input size = "sm" placeholder = "sm Input" />
9
+ < Input size = "md" placeholder = "md Input" />
10
+ < Input size = "lg" placeholder = "lg Input" />
11
+ < Input size = "xl" placeholder = "xl Input" />
12
+ < Input size = "2xl" placeholder = "2xl Input" />
13
+ </ Stack >
16
14
) ;
17
15
} ;
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
- import { Input , Stack , Center } from 'native-base' ;
2
+ import { Input , Stack } from 'native-base' ;
3
3
export const Example = ( ) => {
4
4
return (
5
- < Stack space = { 4 } w = "75%" >
5
+ < Stack space = { 4 } w = "75%" maxW = "300px" >
6
6
< Input variant = "outline" placeholder = "Outline" />
7
7
< Input variant = "filled" placeholder = "Filled" />
8
8
< Input variant = "underlined" placeholder = "Underlined" />
You can’t perform that action at this time.
0 commit comments