property-controls
v0.0.59
Published
Expose dials and knobs for your components in design tools
Readme
property-controls
Installation
yarn add property-controlsUsage
import { ControlType, applyPropertyControls } from 'property-controls'
export const Component = ({ isTomato, ...props }) => (
<h1
{...props}
style={{
color: isTomato ? 'tomato' : 'inherit'
}}
/>
)
applyPropertyControls(Component, {
isTomato: {
type: ControlType.Boolean,
title: 'Tomato'
}
})