Adding Controls
import * as React from "react"
import {
Frame,
addPropertyControls,
ControlType,
} from "framer"
export function MyComponent(props) {
return <Frame>{props.text}</Frame>
}
MyComponent.defaultProps = {
text: "Hello World!",
}
addPropertyControls(MyComponent, {
text: { type: ControlType.String, title: "Hello World" },
})Last updated