Skip to content

Instantly share code, notes, and snippets.

@michaelevensen
Created September 26, 2018 09:10
Show Gist options
  • Save michaelevensen/f21f9fa8fb76fadad6fac1548ca7ea25 to your computer and use it in GitHub Desktop.
Save michaelevensen/f21f9fa8fb76fadad6fac1548ca7ea25 to your computer and use it in GitHub Desktop.
An example of embedding native Framer X components into custom components.
// 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