);
}
+
```
@@ -114,7 +117,7 @@ export default function () {
:::tip Note
-Above props can be written in the format: {color}:alpha-{opacityToken}, this gets converted into RGBA color format and the opacityToken is mapped to [`Opacity`](default-theme#opacity)
+Above props can be written in the format: {color}:alpha-{opacityToken}, this gets converted into RGBA color format and the opacityToken is mapped to [`Opacity`](default-theme#opacity)
:::
@@ -178,15 +181,15 @@ const Text = (props) => {
function Component() {
return (
<>
- { /* font-size of `theme.fontSizes.md` */ }
- Sample Text
- { /* font-size `32px` */ }
- Sample Text
+ { /* font-size of `theme.fontSizes.2xl` */ }
+ Thank You
+ { /* text decoration `underline` */ }
+ Merci Beaucoup
{ /* font-size `'2em'` */ }
- { /* font-size of `theme.fontWeights.bold` */ }
- Sample Text
- { /* text-align `left` on all viewports and `center` from the first breakpoint and up */ }
- Sample Text
+ { /* font-weight of `theme.fontWeights.semibold i.e. 600` */ }
+ Danke sehr
+ { /* letter-spacing `0.1 em` */ }
+ Arigatou
>
);
}
@@ -337,28 +340,29 @@ import React from 'react';
import { Box as NBBox, NativeBaseProvider, Center } from 'native-base';
const Box = (props) => {
- return
-}
+ return ;
+};
function Component() {
return (
<>
-
-
-
+
+
+
>
);
}
export default function () {
return (
-
+
);
}
+
```
@@ -393,7 +397,7 @@ import React from 'react';
import { Box as NBBox, NativeBaseProvider, Center } from 'native-base';
const Box = (props) => {
- return
+ return
}
function Component() {
@@ -443,15 +447,15 @@ import React from 'react';
import { Box as NBBox, NativeBaseProvider, Center } from 'native-base';
const Box = (props) => {
- return
+ return
}
function Component() {
return (
<>
-
-
+
+
>
);
}
@@ -485,7 +489,7 @@ import React from 'react';
import { Box as NBBox, NativeBaseProvider, Center } from 'native-base';
const Box = (props) => {
- return
+ return
}
function Component() {
@@ -533,12 +537,13 @@ function Example() {
);
}
@@ -573,15 +578,16 @@ import { Button, NativeBaseProvider, Center } from 'native-base';
function Example() {
return (
);
}
@@ -618,18 +624,24 @@ import { Button, NativeBaseProvider, Center } from 'native-base';
function Example() {
return (
-
+ color: 'warmGray.50',
+ },
+ },
+ }}>
+ Save
+
);
}