Merge pull request #170 from Conor-Mack/tidyup/components-json
Tidyup and components json update
This commit is contained in:
commit
981934bf82
2 changed files with 35 additions and 4 deletions
|
@ -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": []
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue