Sha256: c7c176585228d0f2bf841c51c226db86cba2fcb03d8929fee3ff3567d95e2677
Contents?: true
Size: 659 Bytes
Versions: 44
Compression:
Stored size: 659 Bytes
Contents
/* @flow */ import React from 'react' import classnames from 'classnames' import Title from '../pb_title/_title.jsx' import { spacing } from '../utilities/spacing.js' type PillProps = { className?: String, id?: String, text: String, variant?: "success" | "warning" | "error" | "info" | "neutral", } const Pill = (props: PillProps) => { const { className, text, variant = 'neutral' } = props const css = classnames([`pb_pill_kit_${variant}`, className], spacing(props)) return ( <div className={css}> <Title className="pb_pill_text" size={4} text={text} /> </div> ) } export default Pill
Version data entries
44 entries across 44 versions & 1 rubygems