Created
September 4, 2018 14:48
-
-
Save winkerVSbecks/7a97adca77b5cc00c8c47f538d727600 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static propertyControls: PropertyControls = { | |
text: { type: ControlType.String, title: 'Text' }, | |
fontSize: { | |
type: ControlType.FusedNumber, | |
toggleKey: 'fontPerBP', | |
toggleTitles: ['Font', 'Font per BP'], | |
valueKeys: ['font1', 'font2', 'font3', 'font4'], | |
valueLabels: theme.breakpoints.map(s => s.replace('px', '')), | |
min: 0, | |
title: 'Font Size', | |
}, | |
color: { | |
type: ControlType.Enum, | |
options: ['text.0', 'text.1', 'text.2', 'text.3'], | |
optionTitles: ['Black', 'Grey', 'Light Grey', 'Dark Grey'], | |
}, | |
margin: { | |
type: ControlType.FusedNumber, | |
toggleKey: 'marginPerSide', | |
toggleTitles: ['Margin', 'Margin per Side'], | |
valueKeys: ['mt', 'mr', 'mb', 'ml'], | |
valueLabels: ['T', 'R', 'B', 'L'], | |
min: 0, | |
title: 'Margin', | |
}, | |
padding: { | |
type: ControlType.FusedNumber, | |
toggleKey: 'paddingPerSide', | |
toggleTitles: ['Padding', 'Padding per Side'], | |
valueKeys: ['mt', 'mr', 'mb', 'ml'], | |
valueLabels: ['T', 'R', 'B', 'L'], | |
min: 0, | |
title: 'Padding', | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment