From 6aa3fec246ba643b3c41ce66e32a4a0809435fff Mon Sep 17 00:00:00 2001 From: Eliott Date: Thu, 10 Oct 2024 16:17:54 +0200 Subject: [PATCH] more example for alert, button, checkbox, box --- .../react/components/alert/Alert.example.tsx | 45 +++++++-- packages/react/components/box/Box.example.tsx | 75 ++++++++++++--- .../components/button/Button.example.tsx | 5 + .../components/checkbox/Checkbox.example.tsx | 91 +++++++++++++++---- .../container/Container.example.tsx | 3 +- 5 files changed, 184 insertions(+), 35 deletions(-) diff --git a/packages/react/components/alert/Alert.example.tsx b/packages/react/components/alert/Alert.example.tsx index 0a72f00e..f102ec68 100644 --- a/packages/react/components/alert/Alert.example.tsx +++ b/packages/react/components/alert/Alert.example.tsx @@ -1,11 +1,44 @@ import React from 'react' import { Alert } from './index' +import { Columns, ColumnsItem } from '../columns' + +const AlertExample: React.ReactNode = +<> + + + + + + + + + + + + + + + -const AlertExample: React.ReactNode = export default AlertExample diff --git a/packages/react/components/box/Box.example.tsx b/packages/react/components/box/Box.example.tsx index c9ab48d9..c073e193 100644 --- a/packages/react/components/box/Box.example.tsx +++ b/packages/react/components/box/Box.example.tsx @@ -1,17 +1,70 @@ import React from 'react' -import { Box, BoxContent } from './index' +import { Box, BoxContent, BoxFooter } from './index' import { Title } from '@/components/title' import { Text } from '@/components/text' +import { Columns, ColumnsItem } from '../columns' +import { Link } from '../link' -const BoxExample: React.ReactNode = - - - Box Title - - - Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus nec iaculis mauris. - - - + +const BoxExample: React.ReactNode = + <> + + + + + + Box Title + + + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus nec iaculis mauris. + + + + + + + + + Box Title + + + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus nec iaculis mauris. + + + + + + + + + Box Title + + + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus nec iaculis mauris. + + + + + + + + + Box Title + + + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus nec iaculis mauris. + + + + + Link + + + + + + export default BoxExample diff --git a/packages/react/components/button/Button.example.tsx b/packages/react/components/button/Button.example.tsx index 61e4899e..299a25b9 100644 --- a/packages/react/components/button/Button.example.tsx +++ b/packages/react/components/button/Button.example.tsx @@ -3,6 +3,11 @@ import { ButtonList, Button } from './index' const ButtonExample: React.ReactNode = +