UNPKG

@kiwicom/orbit-components

Version:

Orbit-components is a React component library which provides developers with the easiest possible way of building Kiwi.com’s products.

24 lines (22 loc) 770 B
import * as React from "react"; import styled from "styled-components"; import defaultTokens from "../../defaultTokens"; import { StyledTableCell } from "../TableCell/index"; const StyledTableHead = styled(({ children, className }) => React.createElement("thead", { className: className }, children)).withConfig({ displayName: "TableHead__StyledTableHead", componentId: "sc-17bka47-0" })(["border-bottom:1px solid ", ";width:100%;white-space:nowrap;", "{font-weight:", ";}"], ({ theme }) => theme.orbit.paletteInkLighter, StyledTableCell, ({ theme }) => theme.orbit.fontWeightBold); StyledTableHead.defaultProps = { theme: defaultTokens }; const TableHead = props => React.createElement(StyledTableHead, null, props.children); export default TableHead;