@@ -2,13 +2,12 @@ import {
22 ComponentLinks ,
33 PropsTable ,
44 InteractiveCodeblock ,
5- Codeblock ,
65} from " @/components/index" ;
76
87# Box
98
109Box 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
1211internally.
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";
105104export 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">
0 commit comments