Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Components/block: Added documentation for styles prop #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion components/block.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Block
This component is the main component block used to build everything in Galio and any type of layout. There are so many props available for easier access to different styling options that you'll rarely write another `style` prop.
This component is the main component block used to build everything in Galio and any type of layout. There are so many props available for easier access to different styling options that you'll rarely write another `style` prop.

### Usage
Imports:
Expand Down Expand Up @@ -32,3 +32,4 @@ Simple example:
| space | string | null | your options are: 'between', 'around' or 'evenly' |
| top | bool | false | alignItems: 'flex-start' alignSelf: 'flex-start' |
| width | number | null | changes the width of the Block |
| styles | object | {} | styles prop can be used to pass custom styles to different types of block dynamically. Possible keys are **block**, **row**, **center**, **middle**, **top**, **bottom**, **right**, **left**, **shadow**, **fluid**, **card**. All styles passed in the keys, except **_block_** are applied only if their corresponding boolean prop is also true, ie. _styles.row_ will be applied only if _row_ prop is true. |