Skip to content

Commit

Permalink
Add more customizations of components.
Browse files Browse the repository at this point in the history
  • Loading branch information
flovouin committed Jan 26, 2021
1 parent 57197ce commit bbab737
Show file tree
Hide file tree
Showing 6 changed files with 82 additions and 1 deletion.
12 changes: 12 additions & 0 deletions component-generation/customizations/Container.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"documentation": "",
"persistentProps": [],
"extraProperties": [{
"name": "id",
"documentation": [],
"stringDefault": "",
"propType": "PropTypes.string",
"forwardProperty": true
}],
"events": {}
}
12 changes: 12 additions & 0 deletions component-generation/customizations/List.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"documentation": "",
"persistentProps": [],
"extraProperties": [{
"name": "id",
"documentation": [],
"stringDefault": "",
"propType": "PropTypes.string",
"forwardProperty": true
}],
"events": {}
}
23 changes: 23 additions & 0 deletions component-generation/customizations/ListItem.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"documentation": "",
"persistentProps": [],
"extraProperties": [{
"name": "id",
"documentation": [],
"stringDefault": "",
"propType": "PropTypes.string",
"forwardProperty": true
},
{
"name": "n_clicks",
"documentation": [],
"stringDefault": "0",
"propType": "PropTypes.number",
"forwardProperty": false
}],
"events": {
"onClick": {
"incrementProperty": "n_clicks"
}
}
}
16 changes: 16 additions & 0 deletions component-generation/customizations/Tab.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"documentation": "",
"persistentProps": [],
"extraProperties": [{
"name": "n_clicks",
"documentation": [],
"stringDefault": "0",
"propType": "PropTypes.number",
"forwardProperty": false
}],
"events": {
"onClick": {
"incrementProperty": "n_clicks"
}
}
}
8 changes: 7 additions & 1 deletion component-generation/customizations/Tabs.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
{
"documentation": "",
"persistentProps": [],
"extraProperties": [],
"extraProperties": [{
"name": "id",
"documentation": [],
"stringDefault": "",
"propType": "PropTypes.string",
"forwardProperty": true
}],
"events": {
"onChange": {
"code": "(e, value) => { setProps({ value }); console.log(value); }"
Expand Down
12 changes: 12 additions & 0 deletions component-generation/customizations/Typography.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"documentation": "",
"persistentProps": [],
"extraProperties": [{
"name": "id",
"documentation": [],
"stringDefault": "",
"propType": "PropTypes.string",
"forwardProperty": true
}],
"events": {}
}

0 comments on commit bbab737

Please sign in to comment.