Sha256: 6ac886526c9bb92785b5afe6f08f755a6b9c7f492198055ea50239d5a71ab1c6

Contents?: true

Size: 619 Bytes

Versions: 21

Compression:

Stored size: 619 Bytes

Contents

/* @flow */
import React from 'react'
import { Body, Title } from '../'

type TitleCountProps = {
  className?: String,
  data?: String,
  id?: String,
  title?: String,
  count?: Number,
  size?: String
}

const TitleCount = ({
  className = 'pb_title_count_kit',
  data,
  count,
  id,
  title,
  size,
}: TitleCountProps) => (
  <div
      className={className}
      data={data}
      id={id}
  >
    <Title
        className="pb_title_count_text"
        size={size == 'lg' ? 3 : 4}
        text={title}
    />
    <Body
        color="light"
        text={`${count}`}
    />
  </div>
)

export default TitleCount

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
playbook_ui-4.6.0 app/pb_kits/playbook/pb_title_count/_title_count.jsx