diff --git a/docs/3.4.x/sidebar.json b/docs/3.4.x/sidebar.json
index 83d67f331..26139c7ec 100644
--- a/docs/3.4.x/sidebar.json
+++ b/docs/3.4.x/sidebar.json
@@ -485,6 +485,10 @@
{
"id": "use-accessible-colors",
"title": "useAccessibleColors"
+ },
+ {
+ "id": "use-sx",
+ "title": "useSx"
}
]
},
diff --git a/docs/3.4.x/use-sx.md b/docs/3.4.x/use-sx.md
new file mode 100644
index 000000000..e32960605
--- /dev/null
+++ b/docs/3.4.x/use-sx.md
@@ -0,0 +1,84 @@
+---
+id: use-sx
+title: useSx
+---
+
+`useTheme` is custom hook which provides headless NativeBase to resolve your style props.
+
+## Import
+
+```jsx
+import { useSx } from "native-base";
+```
+
+- It can be used to create custom component with NativeBase theme engine.
+- It support resopnsive styling.
+
+
+:::note
+
+useSx doesn't support `resopnsive` style with `SSR`.
+:::
+
+## Example
+
+```jsx
+import { useSx } from "native-base";
+
+export const Example = () => {
+ const sx = useSx();
+ return (
+
+
+ New Feat useSx in NativeBase
+
+
+ );
+};
+```
+
+## Example with TypeScript
+
+```jsx
+import { useSx } from "native-base";
+import type { StyledProps } from "native-base";
+
+const textStyle: StyledProps = {
+ color: ["orange.900", "white", "black"],
+ textAlign: "center",
+};
+const containerStyle: StyledProps = {
+ p: 2,
+ bg: ["blue.300", "violet.400", "red.400"],
+ width: 48,
+ height: 48,
+};
+
+export const Example = () => {
+ const sx = useSx();
+ return (
+
+ New Feat useSx in NativeBase
+
+ );
+};
+```
+
+:::note
+
+`Size` prop will be always converted into `width` and `height`.
+:::
+
+### What doesn't support?
+
+- variants can't be used in useSx.
+- Pseudo props, internal pseudo props.
diff --git a/docs/next/sidebar.json b/docs/next/sidebar.json
index 83d67f331..26139c7ec 100644
--- a/docs/next/sidebar.json
+++ b/docs/next/sidebar.json
@@ -485,6 +485,10 @@
{
"id": "use-accessible-colors",
"title": "useAccessibleColors"
+ },
+ {
+ "id": "use-sx",
+ "title": "useSx"
}
]
},
diff --git a/docs/next/use-sx.md b/docs/next/use-sx.md
new file mode 100644
index 000000000..e32960605
--- /dev/null
+++ b/docs/next/use-sx.md
@@ -0,0 +1,84 @@
+---
+id: use-sx
+title: useSx
+---
+
+`useTheme` is custom hook which provides headless NativeBase to resolve your style props.
+
+## Import
+
+```jsx
+import { useSx } from "native-base";
+```
+
+- It can be used to create custom component with NativeBase theme engine.
+- It support resopnsive styling.
+
+
+:::note
+
+useSx doesn't support `resopnsive` style with `SSR`.
+:::
+
+## Example
+
+```jsx
+import { useSx } from "native-base";
+
+export const Example = () => {
+ const sx = useSx();
+ return (
+
+
+ New Feat useSx in NativeBase
+
+
+ );
+};
+```
+
+## Example with TypeScript
+
+```jsx
+import { useSx } from "native-base";
+import type { StyledProps } from "native-base";
+
+const textStyle: StyledProps = {
+ color: ["orange.900", "white", "black"],
+ textAlign: "center",
+};
+const containerStyle: StyledProps = {
+ p: 2,
+ bg: ["blue.300", "violet.400", "red.400"],
+ width: 48,
+ height: 48,
+};
+
+export const Example = () => {
+ const sx = useSx();
+ return (
+
+ New Feat useSx in NativeBase
+
+ );
+};
+```
+
+:::note
+
+`Size` prop will be always converted into `width` and `height`.
+:::
+
+### What doesn't support?
+
+- variants can't be used in useSx.
+- Pseudo props, internal pseudo props.