1
0
Fork 0
mirror of synced 2024-07-04 14:01:27 +12:00

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 9cfbb34ba2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 35 additions and 4 deletions

View file

@ -403,6 +403,37 @@
"persistent": "bool"
},
"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 showTicks = false
export let min = "0"
export let max = "100"
export let value = "1"
export let step = "1"
export let min = 0
export let max = 100
export let value = 1
export let step = 1
export let label = ""
export let disabled = false