Sha256: c4dfd3bd6fd3ae2332f19ea2147791c9e7f682e76ed77b143736bc142e327fa1
Contents?: true
Size: 1.07 KB
Versions: 37
Compression:
Stored size: 1.07 KB
Contents
/* @flow */ import React from 'react' import classnames from 'classnames' import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props' import { globalProps } from '../utilities/globalProps.js' type ButtonToolbarProps = { aria?: object, children?: array<React.ReactChild>, className?: string, connected?: boolean, data?: object, id?: string, onClick?: EventHandler, orientation?: "horizontal" | "vertical", text?: string, variant?: string, } const ButtonToolbar = (props: ButtonToolbarProps) => { const { aria = {}, children, className, connected = false, data = {}, id, orientation = 'horizontal', text, } = props const ariaProps = buildAriaProps(aria) const dataProps = buildDataProps(data) const classes = classnames(buildCss('pb_button_toolbar_kit', orientation, { connected: connected }), className, globalProps(props)) return ( <div {...ariaProps} {...dataProps} className={classes} id={id} > {children || text} </div> ) } export default ButtonToolbar
Version data entries
37 entries across 37 versions & 1 rubygems