diff --git a/packages/web-react/src/components/UNSTABLE_EmptyState/README.md b/packages/web-react/src/components/UNSTABLE_EmptyState/README.md index 585afa5856..262303f8d0 100644 --- a/packages/web-react/src/components/UNSTABLE_EmptyState/README.md +++ b/packages/web-react/src/components/UNSTABLE_EmptyState/README.md @@ -2,3 +2,68 @@ ⚠️ This component is UNSTABLE. It may significantly change at any point in the future. Please use it with caution. + +EmptyState component should be included in the error pages or empty state pages as the carrier of information and links to elsewhere. + +EmptyState component is a composition of the following components: + +- [UNSTABLE_EmptyState](#unstable-emptystate) + - [UNSTABLE_EmptyStateSection](#unstable-emptystatesection) + +## UNSTABLE EmptyState + +The `UNSTABLE_EmptyState` component is a main container responsible for positioning the [UNSTABLE_EmptyStateSection](#unstable-emptystatesection) components or content. + +```jsx + + + +``` + +### API + +The component is based on the [Stack][stack] component and accepts all its properties. For more information, see the [Stack component API][stack-api]. + +## UNSTABLE EmptyStateSection + +The `UNSTABLE_EmptyStateSection` component is a container for the content of each section. + +```jsx + + + +``` + +### API + +The component is based on the [Stack][stack] component and accepts all its properties. For more information, see the [Stack component API][stack-api]. + +[stack]: https://github.com/lmc-eu/spirit-design-system/blob/main/packages/web-react/src/components/Stack/README.md +[stack-api]: https://github.com/lmc-eu/spirit-design-system/blob/main/packages/web-react/src/components/Stack/README.md#api + +## Full Example + +```jsx + + + + + + Heading + Description + + + + + Primary Action + + + Secondary Action + + + + + Link to something + + +``` diff --git a/packages/web-react/src/components/UNSTABLE_EmptyState/demo/EmptyStateDefault.tsx b/packages/web-react/src/components/UNSTABLE_EmptyState/demo/EmptyStateDefault.tsx index ce5fb83ab7..a5a385be3d 100644 --- a/packages/web-react/src/components/UNSTABLE_EmptyState/demo/EmptyStateDefault.tsx +++ b/packages/web-react/src/components/UNSTABLE_EmptyState/demo/EmptyStateDefault.tsx @@ -10,20 +10,7 @@ import UNSTABLE_EmptyStateSection from '../UNSTABLE_EmptyStateSection'; const EmptyStateDefault = () => ( -
+
( strokeDasharray="4 4" /> -
+
Placeholder Replace me with your own component