Skip to content

Commit 82fd034

Browse files
committed
docs(icon): 📝 update all icons layout responsive
1 parent ad1814f commit 82fd034

File tree

3 files changed

+16
-17
lines changed

3 files changed

+16
-17
lines changed

pages/docs/components/primitives/box.mdx

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@ import {
22
ComponentLinks,
33
PropsTable,
44
InteractiveCodeblock,
5-
Codeblock,
65
} from "@/components/index";
76

87
# Box
98

109
Box is the most abstract component on top of which all other AdaptUI components
11-
are built. It uses reakit's [Role](https://reakit.io/docs/role/) component
10+
are built. It uses Arikits's [Role](https://reakit.io/docs/role/) component
1211
internally.
1312

1413
<ComponentLinks github="box" story="primitives-box" />
@@ -27,13 +26,13 @@ import { Box } from "@adaptui/react-tailwind";
2726

2827
## `As` prop
2928

30-
By using the `as` prop you can control which element should be rendered, if you
31-
are using typescript Box is fully typesafe too.
29+
By using the `as` prop, you can control which element should be rendered. If you
30+
are using typescript, Box is fully typesafe too.
3231

33-
You can either pass string elements or pass ReactNodes to the as prop.
32+
You can either pass string elements or pass `ReactNode` to the `as` prop.
3433

35-
Follows all the Reakit composition rules
36-
[Reakit Composition Docs](https://reakit.io/docs/composition/)
34+
Follows all the Ariakits composition rules
35+
[Arikits Composition Docs](https://reakit.io/docs/composition/)
3736

3837
<Codeblock live noInline>
3938

@@ -105,16 +104,16 @@ import { Box } from "@adaptui/react-tailwind";
105104
export const App = (props) => {
106105
return (
107106
<Box as="dl" className="grid grid-cols-1 gap-5 mt-5 sm:grid-cols-2">
108-
<Box className="px-4 py-5 overflow-hidden bg-white rounded-lg shadow sm:p-6">
109-
<Box as="dt" className="text-sm font-medium text-gray-500 truncate">
107+
<Box className="px-4 py-5 overflow-hidden bg-white rounded-lg shadow-md sm:p-6">
108+
<Box as="dt" className="text-sm font-medium text-gray-600 truncate">
110109
Total Subscribers
111110
</Box>
112111
<Box as="dd" className="mt-1 text-3xl font-semibold text-gray-900">
113112
71,897
114113
</Box>
115114
</Box>
116-
<Box className="px-4 py-5 overflow-hidden bg-white rounded-lg shadow sm:p-6">
117-
<Box as="dt" className="text-sm font-medium text-gray-500 truncate">
115+
<Box className="px-4 py-5 overflow-hidden bg-white rounded-lg shadow-md sm:p-6">
116+
<Box as="dt" className="text-sm font-medium text-gray-600 truncate">
118117
Avg. Open Rate
119118
</Box>
120119
<Box as="dd" className="mt-1 text-3xl font-semibold text-gray-900">

pages/docs/components/primitives/button.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ import {
88
# Button
99

1010
The Button component can be used to trigger various kinds of user events such as
11-
such as submitting a form, opening a dialog, canceling an action, or performing
12-
a delete operation.
11+
submitting a form, opening a dialog, canceling an action, or performing a delete
12+
operation.
1313

1414
<ComponentLinks github="button" theme="button" story="primitives-button" />
1515

1616
## Imports
1717

1818
```jsx
19-
import { Button } from "@adaptui/react-tailwind";
19+
import { Button, CloseButton } from "@adaptui/react-tailwind";
2020
```
2121

2222
- **Button:** The button which has prefix/suffix icons support, variants & size.

pages/docs/components/primitives/icon.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ If no children is provided Icon will render a fallback icon.
3838
import { Icon } from "@adaptui/react-tailwind";
3939
4040
export const App = (props) => {
41-
return <Icon />;
41+
return <Icon className="text-gray-800" />;
4242
};
4343
```
4444

@@ -70,7 +70,7 @@ export const App = props => {
7070
),
7171
});
7272
73-
return <CheckIcon />;
73+
return <CheckIcon className="text-gray-800" />;
7474
};
7575
```
7676

@@ -83,7 +83,7 @@ export const App = props => {
8383
```
8484
export const App = props => {
8585
return (
86-
<div className="inline-grid grid-cols-6 place-items-center gap-4 text-5xl">
86+
<div className="grid grid-cols-4 sm:grid-cols-8 gap-4 place-items-center text-2xl sm:text-4xl text-black-900">
8787
<SlotIcon />
8888
<CaretDownIcon />
8989
<CaretLeftIcon />

0 commit comments

Comments
 (0)