fix(docs): Add default values and loading to blocks.

This commit is contained in:
Gervwyk 2021-01-27 12:58:47 +02:00
parent f5e65ab406
commit fcadf76edc
6 changed files with 28 additions and 11 deletions

View File

@ -1,7 +1,9 @@
{
"valueType": "string",
"category": "input",
"loading": false,
"loading": {
"type": "SkeletonInput"
},
"test": {
"validation": true,
"required": true

View File

@ -1,6 +1,8 @@
{
"category": "display",
"loading": false,
"loading": {
"type": "SkeletonButton"
},
"schema": {
"properties": {
"type": "object",
@ -8,7 +10,8 @@
"properties": {
"block": {
"type": "boolean",
"description": "Fit the button's span to its parent container span."
"description": "Fit the button's span to its parent container span.",
"default": false
},
"color": {
"type": "string",
@ -19,19 +22,23 @@
},
"danger": {
"type": "boolean",
"description": "Set button style to danger."
"description": "Set button style to danger.",
"default": false
},
"disabled": {
"type": "boolean",
"description": "Disable the button if true."
"description": "Disable the button if true.",
"default": false
},
"ghost": {
"type": "boolean",
"description": "Make the button's background transparent when true."
"description": "Make the button's background transparent when true.",
"default": false
},
"hideTitle": {
"type": "boolean",
"description": "Hide the button's title."
"description": "Hide the button's title.",
"default": false
},
"href": {
"type": "string",

View File

@ -1,7 +1,9 @@
{
"valueType": "string",
"category": "input",
"loading": false,
"loading": {
"type": "SkeletonInput"
},
"test": {
"validation": true,
"required": true

View File

@ -1,7 +1,9 @@
{
"valueType": "string",
"category": "input",
"loading": false,
"loading": {
"type": "SkeletonInput"
},
"test": {
"validation": true,
"required": true

View File

@ -16,8 +16,12 @@ _ref:
path: templates/blocks/template.yaml.njk
vars:
block_type: AutoComplete
value_type: String
value_type: string
category: input
init_property_values:
options:
- one
- two
description_content: |
The AutoComplete block is a text input that has a list of suggestions for the user. These suggestions are filtered as the user fills in the input. The user is also allowed to fill in an input not part of that list.

View File

@ -16,7 +16,7 @@ _ref:
path: templates/blocks/template.yaml.njk
vars:
block_type: TextInput
value_type: String
value_type: string
category: input
description_content: |
The `TextInput` block is a single line text input.