import { Box } from 'components'
Box
is the base component that other components can be built from. It is responsible for converting style props into CSS rules.
import { Box, Stack } from 'components'
export default function Example() {
return (
<Stack
width="100%"
height="100%"
alignItems="center"
justifyContent="center"
>
<Box padding={16} backgroundColor="tomato" color="white">
Hello Box
</Box>
</Stack>
)
}
These guidelines are an example of how importing MDX works. Components like Box
are supported as well for things like overriding inline text.
string
React.ReactNode
string | number
string
string
React.CSSProperties