0.0.59 • Published 6 years ago

property-controls v0.0.59

Weekly downloads
16,280
License
MIT
Repository
github
Last release
6 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

6 years ago

0.0.58

6 years ago

0.0.55

6 years ago

0.0.56

6 years ago

0.0.57

6 years ago

0.0.54

7 years ago

0.0.53

7 years ago

0.0.51

7 years ago

0.0.52

7 years ago

0.0.50

7 years ago

0.0.49

7 years ago

0.0.48

7 years ago

0.0.47

7 years ago

0.0.46

7 years ago

0.0.45

7 years ago

0.0.43

7 years ago

0.0.42

7 years ago

0.0.40

7 years ago

0.0.41

7 years ago

0.0.39

7 years ago

0.0.38

7 years ago

0.0.37

7 years ago

0.0.36

7 years ago

0.0.35

7 years ago

0.0.34

7 years ago

0.0.33

7 years ago

0.0.32

7 years ago

0.0.30

7 years ago

0.0.31

7 years ago

0.0.29

7 years ago