1
1
mirror of https://github.com/primer/css.git synced 2024-11-28 13:12:16 +03:00
css/docs/Table.js
2019-06-18 14:50:12 -07:00

29 lines
452 B
JavaScript

import styled from 'styled-components'
import {Box} from '@primer/components'
const Table = styled.table`
display: table !important;
border-collapse: separate;
border-spacing: 0 4px;
tr,
td,
th {
border: 0 !important;
}
td,
th {
text-align: left;
}
tr {
background-color: transparent !important;
}
`
Table.Row = styled(Box).attrs({as: 'tr'})``
Table.Cell = styled(Box).attrs({as: 'td'})``
export default Table