diff --git a/packages/docs/src/components/components.mdx b/packages/docs/src/components/components.mdx new file mode 100644 index 000000000..07e6900f5 --- /dev/null +++ b/packages/docs/src/components/components.mdx @@ -0,0 +1,232 @@ + + +import { useTheme } from '@emotion/react' +import { + Message, + NavLink, + Divider, + Container, + Box, + Button, + Card, + Text, + Paragraph, + Image, + Slider, + Label, + Flex, + Checkbox, + Select, + Textarea, + Radio, + Input, + Link, + Progress, + Badge, + Alert, +} from 'theme-ui' + +export const Radii = () => { + const theme = useTheme() + if (typeof theme.radii === 'object') { + return ( + + +

Borders

+ + {Object.keys(theme.radii).map((key) => ( + + {key} + + ))} + +
+ ) + } + return null +} + +# Example components + + + +export const Buttons = () => { + const theme = useTheme() + if (typeof theme.buttons === 'object') { + return ( + + +

Buttons

+ + {Object.keys(theme.buttons).map((key) => ( + + ))} + +
+ ) + } + return null +} + + + +--- + +## Form elements + + e.preventDefault()} + sx={{ width: '100%', maxWidth: '500px' }}> + + + + + + + + + + +