budibase/packages/standard-components/dist/components.json

91 lines
2.4 KiB
JSON
Raw Normal View History

2019-08-19 22:18:23 +02:00
{
2019-09-09 06:24:14 +02:00
"_lib": "./index.js",
2019-08-19 22:18:23 +02:00
"button" : {
"importPath": "button",
"name": "Button",
"description": "an html <button />",
"props": {
"contentText": { "type": "string", "default": "Button" },
"contentComponent": "component",
2019-08-27 08:32:56 +02:00
"className": {"type": "string", "default": "default"},
2019-08-19 22:18:23 +02:00
"disabled": "bool"
},
"tags": ["button"]
2019-08-27 08:32:56 +02:00
},
"login" : {
"importPath": "login",
"name": "Login Control",
"desciption": "A control that accepts username, password an also handles password resets",
"props" : {
"logo": "asset",
"loginRedirect": "string",
"usernameLabel": {"type":"string", "default": "Username"},
"passwordLabel": {"type":"string", "default": "Password"},
"loginButtonLabel": {"type":"string", "default": "Login"}
},
"tags": ["login", "credentials", "password", "logon"]
},
"formControl" : {
"importPath": "formControl",
"name": "Form Control",
"desciption": "A wrapper for a control, used inside a form. Allows a label, and properly alligns the control inside the parent form",
"props" : {
"containerClass": "string",
"labelContainerClass": "string",
"controlContainerClass": "string",
"label": "string",
"control": "component",
"fullWidth": "bool"
},
"tags": ["login"]
},
"form" : {
"importPath": "form",
"name": "Form",
"desciption": "A form - you should usually add FormControls as children to get nice allignment",
"props" : {
"containerClass": "string",
"formControls": {
"type":"array",
"elementDefinition": {
"control":"component"
}
}
},
"tags": ["form"]
},
"textbox" : {
"importPath": "textbox",
"name": "Textbox",
"desciption": "An input type=text or password",
"props" : {
"value": "string",
"hideValue": "boolean",
"className": {"type": "string", "default": "default"}
},
"tags": ["form"]
2019-09-03 11:42:19 +02:00
},
"stackpanel": {
"importPath": "stackpanel",
"name": "StackPanel",
"desciption": "Layout elements in a stack, either horizontally or vertically",
"props" : {
"direction": {
"type": "options",
"options": ["horizontal", "vertical"],
"default":"horizontal"
},
"children": {
"type":"array",
"elementDefinition": {
"control":"component"
}
},
"width": {"type":"string","default":"auto"},
"height": {"type":"string","default":"auto"},
"containerClass":"string",
"itemContainerClass":"string"
},
"tags": ["div", "container", "layout", "panel"]
2019-08-19 22:18:23 +02:00
}
}