Created
September 26, 2018 09:10
-
-
Save michaelevensen/f21f9fa8fb76fadad6fac1548ca7ea25 to your computer and use it in GitHub Desktop.
An example of embedding native Framer X components into custom components.
This file contains hidden or 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
// Set default properties | |
static defaultProps = { | |
numberOfItems: 1, | |
...Stack.defaultProps | |
} | |
// Items shown in property panel | |
static propertyControls: PropertyControls = { | |
numberOfItems: { | |
type: ControlType.Number, | |
title: "Number of Items", | |
min: 1, | |
max: 30 | |
}, | |
...Stack.propertyControls // all of stack property controls | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment