Sha256: 3e506f3c66c22a25584112d15640e61f99a84ec779fe0b197438b38aedc2b460

Contents?: true

Size: 758 Bytes

Versions: 3

Compression:

Stored size: 758 Bytes

Contents

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

type TableRowPropTypes = {
  children: array<React.ReactNode> | React.ReactNode,
  className: string,
  sideHighlightColor: string,
}

const TableRow = (props: TableRowPropTypes) => {
  const { children, className, sideHighlightColor = 'windows' } = props
  const sideHighlightClass =
    sideHighlightColor != '' ? `side_highlight_${sideHighlightColor}` : null
  const tableRowCss = buildCss('pb_table_row_kit', sideHighlightClass)

  return (
    <tr className={classnames(tableRowCss, className, globalProps(props))}>
      {children}
    </tr>
  )
}

export default TableRow

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
playbook_ui-6.2.1 app/pb_kits/playbook/pb_table/_table_row.jsx
playbook_ui-6.2.0 app/pb_kits/playbook/pb_table/_table_row.jsx
playbook_ui-7.0.0.pre.alpha1 app/pb_kits/playbook/pb_table/_table_row.jsx