Sha256: 14ef6e98812be78672836b2fd1d19bc8b24f07f554a05a338903b9815f8a3915

Contents?: true

Size: 1.06 KB

Versions: 120

Compression:

Stored size: 1.06 KB

Contents

/* @flow */
import React from 'react'
import classnames from 'classnames'
import { Caption } from '../'
import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
import { globalProps } from '../utilities/globalProps.js'

type SectionSeparatorProps = {
  aria: object,
  className: string,
  dark?: boolean,
  data: object,
  id: string,
  orientation?: "horizontal" | "vertical",
  text: string,
  variant?: "card" | "background",
}

const SectionSeparator = (props: SectionSeparatorProps) => {
  const {
    aria = {},
    className,
    data = {},
    id,
    orientation = 'horizontal',
    text,
    variant = 'card',
  } = props
  const ariaProps = buildAriaProps(aria)
  const dataProps = buildDataProps(data)
  const classes = classnames(buildCss('pb_section_separator_kit', variant, orientation), globalProps(props), className)

  return (

    <div
        {...ariaProps}
        {...dataProps}
        className={classes}
        id={id}
    >
      <span>
        <Caption text={text} />
      </span>
    </div>
  )
}

export default SectionSeparator

Version data entries

120 entries across 120 versions & 1 rubygems

Version Path
playbook_ui-9.12.0.pre.text.addon app/pb_kits/playbook/pb_section_separator/_section_separator.jsx
playbook_ui-9.11.0 app/pb_kits/playbook/pb_section_separator/_section_separator.jsx
playbook_ui-9.10.0 app/pb_kits/playbook/pb_section_separator/_section_separator.jsx
playbook_ui-9.10.0.pre.alpha2 app/pb_kits/playbook/pb_section_separator/_section_separator.jsx
playbook_ui-9.10.0.pre.alpha1 app/pb_kits/playbook/pb_section_separator/_section_separator.jsx
playbook_ui-9.9.0.alpha.inline1 app/pb_kits/playbook/pb_section_separator/_section_separator.jsx
playbook_ui-9.9.0 app/pb_kits/playbook/pb_section_separator/_section_separator.jsx
playbook_ui-9.8.0 app/pb_kits/playbook/pb_section_separator/_section_separator.jsx
playbook_ui-9.7.0.pre.alphawidth1 app/pb_kits/playbook/pb_section_separator/_section_separator.jsx
playbook_ui-9.7.0.pre.alpha.a11y.btn app/pb_kits/playbook/pb_section_separator/_section_separator.jsx
playbook_ui-9.7.0 app/pb_kits/playbook/pb_section_separator/_section_separator.jsx
playbook_ui-9.6.1 app/pb_kits/playbook/pb_section_separator/_section_separator.jsx
playbook_ui-9.6.1.pre.deps1 app/pb_kits/playbook/pb_section_separator/_section_separator.jsx
playbook_ui-9.6.0 app/pb_kits/playbook/pb_section_separator/_section_separator.jsx
playbook_ui-9.5.0.alpha.rs.downgrade app/pb_kits/playbook/pb_section_separator/_section_separator.jsx
playbook_ui-9.5.0 app/pb_kits/playbook/pb_section_separator/_section_separator.jsx
playbook_ui-9.4.0.alpha.sisense app/pb_kits/playbook/pb_section_separator/_section_separator.jsx
playbook_ui-9.4.0.alpha.user.kit.bug app/pb_kits/playbook/pb_section_separator/_section_separator.jsx
playbook_ui-9.4.0 app/pb_kits/playbook/pb_section_separator/_section_separator.jsx
playbook_ui-9.3.1.pre.alpha2 app/pb_kits/playbook/pb_section_separator/_section_separator.jsx