0.0.59 • Published 5 years ago

property-controls v0.0.59

Weekly downloads
16,280
License
MIT
Repository
github
Last release
5 years ago

property-controls

Installation

yarn add property-controls

Usage

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'
  }
})

Related

0.0.59

5 years ago

0.0.58

5 years ago

0.0.55

6 years ago

0.0.56

6 years ago

0.0.57

6 years ago

0.0.54

6 years ago

0.0.53

6 years ago

0.0.51

6 years ago

0.0.52

6 years ago

0.0.50

6 years ago

0.0.49

6 years ago

0.0.48

6 years ago

0.0.47

6 years ago

0.0.46

6 years ago

0.0.45

6 years ago

0.0.43

6 years ago

0.0.42

6 years ago

0.0.40

6 years ago

0.0.41

6 years ago

0.0.39

6 years ago

0.0.38

6 years ago

0.0.37

6 years ago

0.0.36

6 years ago

0.0.35

6 years ago

0.0.34

6 years ago

0.0.33

6 years ago

0.0.32

6 years ago

0.0.30

6 years ago

0.0.31

6 years ago

0.0.29

6 years ago