Sha256: 76fc7dec03a58f83072f490d7546a7d0a78362008ff0f9360bfdc71c66230c36

Contents?: true

Size: 925 Bytes

Versions: 151

Compression:

Stored size: 925 Bytes

Contents

/* @flow */

import React from 'react'
import classnames from 'classnames'
import { globalProps } from '../utilities/globalProps.js'

import { Body, Title } from '../'

import { buildCss, buildDataProps } from '../utilities/props'

type TitleDetailProps = {
  align?: "left" | "center" | "right",
  className?: string,
  data?: object,
  detail: string,
  id?: string,
  title: string,
}

const TitleDetail = (props: TitleDetailProps) => {
  const { align = 'left', className, data = {}, detail, id, title } = props
  const dataProps = buildDataProps(data)
  const pbCss = buildCss('pb_title_detail_kit', align)

  return (
    <div
        {...dataProps}
        className={classnames(pbCss, globalProps(props), className)}
        id={id}
    >
      <Title
          size={4}
          text={title}
      />
      <Body
          color="light"
          text={detail}
      />
    </div>
  )
}

export default TitleDetail

Version data entries

151 entries across 151 versions & 1 rubygems

Version Path
playbook_ui-9.19.0 app/pb_kits/playbook/pb_title_detail/_title_detail.jsx
playbook_ui-9.19.0.pre.alphafonts app/pb_kits/playbook/pb_title_detail/_title_detail.jsx
playbook_ui-9.18.0.flow.bin.alpha app/pb_kits/playbook/pb_title_detail/_title_detail.jsx
playbook_ui-9.18.0 app/pb_kits/playbook/pb_title_detail/_title_detail.jsx
playbook_ui-9.17.0 app/pb_kits/playbook/pb_title_detail/_title_detail.jsx
playbook_ui-9.17.0.pre.decouple.website2 app/pb_kits/playbook/pb_title_detail/_title_detail.jsx
playbook_ui-9.16.0 app/pb_kits/playbook/pb_title_detail/_title_detail.jsx
playbook_ui-9.15.0 app/pb_kits/playbook/pb_title_detail/_title_detail.jsx
playbook_ui-9.15.0.pre.decouple.website1 app/pb_kits/playbook/pb_title_detail/_title_detail.jsx
playbook_ui-9.14.1.alpha.radio.alignment app/pb_kits/playbook/pb_title_detail/_title_detail.jsx
playbook_ui-9.14.1.alpha.highcharts9 app/pb_kits/playbook/pb_title_detail/_title_detail.jsx
playbook_ui-9.14.1 app/pb_kits/playbook/pb_title_detail/_title_detail.jsx
playbook_ui-9.13.0 app/pb_kits/playbook/pb_title_detail/_title_detail.jsx
playbook_ui-9.12.0 app/pb_kits/playbook/pb_title_detail/_title_detail.jsx
playbook_ui-9.12.0.pre.text.addon app/pb_kits/playbook/pb_title_detail/_title_detail.jsx
playbook_ui-9.11.0 app/pb_kits/playbook/pb_title_detail/_title_detail.jsx
playbook_ui-9.10.0 app/pb_kits/playbook/pb_title_detail/_title_detail.jsx
playbook_ui-9.10.0.pre.date.time.stacked.1 app/pb_kits/playbook/pb_title_detail/_title_detail.jsx
playbook_ui-9.10.0.pre.alpha2 app/pb_kits/playbook/pb_title_detail/_title_detail.jsx
playbook_ui-9.10.0.pre.alpha1 app/pb_kits/playbook/pb_title_detail/_title_detail.jsx