Preview: table-cell.tsx
Size: 887 B
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/@adminjs/design-system/src/atoms/table/table-cell.tsx
import { LayoutProps, SpaceProps, color, layout, space } from 'styled-system'
import { styled } from '@styled-components'
import { NewColorProps as ColorProps } from '../../utils/color-props.js'
import { cssClass } from '../../utils/css-class.js'
/**
* @component
* @private
*/
const TableCell = styled.td<SpaceProps | ColorProps | LayoutProps>`
border-top: 1px solid ${({ theme }) => theme.colors.border};
border-bottom: 1px solid ${({ theme }) => theme.colors.border};
font-size: ${({ theme }) => theme.fontSizes.default};
line-height: ${({ theme }) => theme.lineHeights.default};
word-break: break-word;
vertical-align: middle;
${color};
${space};
${layout};
&.options {
text-align: right;
}
`
TableCell.defaultProps = {
p: 'lg',
color: 'text',
className: cssClass('TableCell'),
}
TableCell.displayName = 'TableCell'
export default TableCell
Directory Contents
Dirs: 0 × Files: 8