Merge pull request #170 from Conor-Mack/tidyup/components-json

Tidyup and components json update
This commit is contained in:
Conor_Mack 2020-03-26 14:49:10 +00:00 committed by GitHub
commit 981934bf82
2 changed files with 35 additions and 4 deletions

View File

@ -403,6 +403,37 @@
"persistent": "bool" "persistent": "bool"
}, },
"tags": [] "tags": []
},
"Switch": {
"name": "Switch",
"description": "A material design switch component",
"props": {
"alignEnd": "bool",
"disabled": "bool",
"checked": "bool",
"label": "string",
"id": "string"
},
"tags": []
},
"Slider": {
"name": "Slider",
"description": "A material design slider component",
"props": {
"variant": {
"type": "options",
"options": ["continuous", "discrete"],
"default": "continuous"
},
"showTicks": "bool",
"min": "number",
"max": "number",
"value": "number",
"step": "number",
"label": "string",
"disabled": "bool"
},
"tags": []
} }
} }

View File

@ -10,10 +10,10 @@
export let variant = "continuous" //or discrete export let variant = "continuous" //or discrete
export let showTicks = false export let showTicks = false
export let min = "0" export let min = 0
export let max = "100" export let max = 100
export let value = "1" export let value = 1
export let step = "1" export let step = 1
export let label = "" export let label = ""
export let disabled = false export let disabled = false