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-8.2.1 app/pb_kits/playbook/pb_title_detail/_title_detail.jsx
playbook_ui-8.1.3 app/pb_kits/playbook/pb_title_detail/_title_detail.jsx
playbook_ui-8.4.0.alpha.dependencies.2 app/pb_kits/playbook/pb_title_detail/_title_detail.jsx
playbook_ui-8.4.0.alpha.dependencies.1 app/pb_kits/playbook/pb_title_detail/_title_detail.jsx
playbook_ui-8.2.0.pre.alpha4 app/pb_kits/playbook/pb_title_detail/_title_detail.jsx
playbook_ui-8.2.0.pre.alpha3 app/pb_kits/playbook/pb_title_detail/_title_detail.jsx
playbook_ui-8.2.0 app/pb_kits/playbook/pb_title_detail/_title_detail.jsx
playbook_ui-8.1.2 app/pb_kits/playbook/pb_title_detail/_title_detail.jsx
playbook_ui-8.1.0.pre.alpha1 app/pb_kits/playbook/pb_title_detail/_title_detail.jsx
playbook_ui-8.0.3 app/pb_kits/playbook/pb_title_detail/_title_detail.jsx
playbook_ui-8.2.0.pre.alpha2 app/pb_kits/playbook/pb_title_detail/_title_detail.jsx
playbook_ui-8.1.1 app/pb_kits/playbook/pb_title_detail/_title_detail.jsx
playbook_ui-8.0.2 app/pb_kits/playbook/pb_title_detail/_title_detail.jsx
playbook_ui-8.2.0.pre.alpha1 app/pb_kits/playbook/pb_title_detail/_title_detail.jsx
playbook_ui-8.1.0 app/pb_kits/playbook/pb_title_detail/_title_detail.jsx
playbook_ui-8.0.1 app/pb_kits/playbook/pb_title_detail/_title_detail.jsx
playbook_ui-8.0.0 app/pb_kits/playbook/pb_title_detail/_title_detail.jsx
playbook_ui-8.0.0.pre.alpha5 app/pb_kits/playbook/pb_title_detail/_title_detail.jsx
playbook_ui-8.0.0.pre.alpha4 app/pb_kits/playbook/pb_title_detail/_title_detail.jsx
playbook_ui-8.0.0.pre.alpha1 app/pb_kits/playbook/pb_title_detail/_title_detail.jsx