From d5771ee2125a04ac4382acfb17da44ea559800bc Mon Sep 17 00:00:00 2001 From: Robin Weser Date: Fri, 5 Jul 2024 13:15:05 +0200 Subject: [PATCH] some docs --- packages/brandeur-primitives/README.md | 127 +++++++++++++++++- .../src/components/createBox.js | 6 +- 2 files changed, 129 insertions(+), 4 deletions(-) diff --git a/packages/brandeur-primitives/README.md b/packages/brandeur-primitives/README.md index 516ec08..10030bd 100644 --- a/packages/brandeur-primitives/README.md +++ b/packages/brandeur-primitives/README.md @@ -51,12 +51,137 @@ const App = ( ### createSystem +#### Arguments + +Accepts an object including all of brandeur's [createHooks]() [configuration]().
+Additionally, also accepts the following properties: + +| Argument | Type | Default | Description | +| ------------ | -------- | ------- | ---------------------------- | +| baselineGrid | _number_ | 1 | Multiplier for spacing props | + +#### Returns + +An object containing the [styleSheet]() from [createHooks]() and an generic [El](#el) component. + #### El -#### styleSheet +##### Props + +| Props | Type | Default | Description | +| ----- | --------------------- | ------- | ----------------------------------------------------------------- | +| as | [React.ElementType]() | `div` | | +| style | [Style]() | | Brandeur styles that are automatically converted to inline styles | + +> **Note**: All other props are passed down to the rendered component. + +##### Example + +```tsx +function Button(props) { + return