Sha256: 2f2ca7812476e9f46b9895a0d9a0b12915a7cf1995604c464f0b663919253934

Contents?: true

Size: 632 Bytes

Versions: 14

Compression:

Stored size: 632 Bytes

Contents

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

import React from 'react'

import classnames from 'classnames'
import Title from '../pb_title/_title.jsx'

type PillProps = {
  className?: String,
  id?: String,
  text: String,
  variant?: 'success' | 'warning' | 'error' | 'info' | 'neutral',
}

const Pill = ({
  className,
  id,
  text,
  variant='neutral'
}: PillProps) => {
  const css = classnames([
    `pb_pill_kit_${variant}`,
    className,
  ])

  return (
    <div className={css}>
      <Title size={4} className="pb_pill_text" text={text} />
    </div>
  )
}

export default Pill

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
playbook_ui-3.1.0 app/pb_kits/playbook/pb_pill/_pill.jsx
playbook_ui-3.0.1 app/pb_kits/playbook/pb_pill/_pill.jsx
playbook_ui-3.0.0 app/pb_kits/playbook/pb_pill/_pill.jsx
playbook_ui-2.9.9 app/pb_kits/playbook/pb_pill/_pill.jsx
playbook_ui-2.9.8 app/pb_kits/playbook/pb_pill/_pill.jsx
playbook_ui-2.9.7 app/pb_kits/playbook/pb_pill/_pill.jsx
playbook_ui-2.9.6 app/pb_kits/playbook/pb_pill/_pill.jsx
playbook_ui-2.9.5 app/pb_kits/playbook/pb_pill/_pill.jsx
playbook_ui-2.9.4 app/pb_kits/playbook/pb_pill/_pill.jsx
playbook_ui-2.9.3 app/pb_kits/playbook/pb_pill/_pill.jsx
playbook_ui-2.9.2 app/pb_kits/playbook/pb_pill/_pill.jsx
playbook_ui-2.9.1 app/pb_kits/playbook/pb_pill/_pill.jsx
playbook_ui-2.9.0 app/pb_kits/playbook/pb_pill/_pill.jsx
playbook_ui-2.8.9 app/pb_kits/playbook/pb_pill/_pill.jsx