Sha256: 3908509cf36ddbcf1a494321c2fce56e24c971f70ac38c7005edcd0904e6cd0c

Contents?: true

Size: 717 Bytes

Versions: 1

Compression:

Stored size: 717 Bytes

Contents

/* @flow */
/*eslint-disable react/no-multi-comp, flowtype/space-before-type-colon */

import React from 'react'

import classnames from 'classnames'

type <%= @kit_name_pascal %>Props = {
  className?: String,
  text: String,
}

class <%= @kit_name_pascal %> extends React.Component<<%= @kit_name_pascal %>Props> {
  static defaultProps = {
    text: '<%= @kit_name_uppercase %>'
  }

  props: <%= @kit_name_pascal %>Props

  render() {
    const {
      className,
      text
    } = this.props

    const css = classnames([
      `pb_<%= @kit_name_underscore %>_kit`,
      className,
    ])

    return (
      <div className={css}>
        {text}
      </div>
    )
  }
}

export default <%= @kit_name_pascal %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
playbook_ui-2.8.7 lib/generators/kit/templates/kit_jsx.erb.tt