1.0.0 • Published 7 years ago

react-components-lib-appman v1.0.0

Weekly downloads
6
License
-
Repository
github
Last release
7 years ago

react-components-lib

Components

  • Button
  • Checkbox
  • DatePicker
  • Dropdown
  • PopupSearch
  • Radio
  • Textarea
  • TextInput
  • withLabel

Prop Types of Component

view Summary Prop types Table, how to config styled on ❗ Summary. For each Component see Prop types on their stories

Usage

import React from 'react'
import styled from 'styled-components'
import TextInputStyle from './PATH/TO/TextInputStyle'

import {
  withLabel,
  TextInputComponent,
  TextareaComponent,
  ButtonComponent,
  DropdownComponent,
  PopupSearchComponent,
  RadioComponent,
  CheckboxComponent,
  DatePickerComponent,
} from 'react-components-lib'

const TextInputWithStyle = styled(TextInputComponent)`
  ${TextInputStyle};
`
const TextInputWithLabel = withLabel(TextInputWithStyle)


class Example extends React.Component {

  render () {
    return (
      <TextInputWithLabel />
    )
  }
}

Storybook

Start

yarn storybook

or

Storybook

Build storybook

yarn build-storybook

Storybook Addons

Panel name
KBOBInteractively edit component prop data in the Storybook UI
ACTION LOGGERLog actions as users interact with components in the Storybook UI
STORYView the code of your stories within the Storybook UI
TESTSView the results of components' unit tests in Storybook
README

storybook doc

Example App with react-components-lib

on src/example

yarn start