0.0.59 • Published 4 years ago

property-controls v0.0.59

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

4 years ago

0.0.58

4 years ago

0.0.55

4 years ago

0.0.56

4 years ago

0.0.57

4 years ago

0.0.54

4 years ago

0.0.53

4 years ago

0.0.51

4 years ago

0.0.52

4 years ago

0.0.50

4 years ago

0.0.49

4 years ago

0.0.48

4 years ago

0.0.47

4 years ago

0.0.46

4 years ago

0.0.45

4 years ago

0.0.43

4 years ago

0.0.42

4 years ago

0.0.40

4 years ago

0.0.41

4 years ago

0.0.39

4 years ago

0.0.38

4 years ago

0.0.37

4 years ago

0.0.36

4 years ago

0.0.35

4 years ago

0.0.34

4 years ago

0.0.33

4 years ago

0.0.32

4 years ago

0.0.30

4 years ago

0.0.31

4 years ago

0.0.29

4 years ago