From 3f79853f13b107b85520e422b5085f947dd75bcc Mon Sep 17 00:00:00 2001 From: Ayush Gupta Date: Tue, 29 Sep 2020 23:31:12 +0530 Subject: [PATCH] ADDED Documentation for styles prop --- components/block.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/block.md b/components/block.md index 6797520..789da36 100644 --- a/components/block.md +++ b/components/block.md @@ -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: @@ -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. |