Tidyup and components json update

This commit is contained in:
Conor_Mack 2020-03-26 14:47:49 +00:00
parent 5e780647e2
commit d2b0e79a73
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