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