This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
2022-02-18 08:20:47 +00:00
|
|
|
import styled from "styled-components";
|
2022-02-17 11:53:32 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Accepts all HMTL attributes a `<th>` element does.
|
|
|
|
*/
|
|
|
|
export const TableHeadCell = styled.th.attrs({
|
|
|
|
className: `px-6 py-2.5 truncate h-tableRow
|
|
|
|
text-palette-600 font-sans font-light text-xs
|
|
|
|
first:rounded-l-sm last:rounded-r-sm`,
|
|
|
|
})`
|
2022-02-18 08:20:47 +00:00
|
|
|
text-align: ${({ align }) => align ?? "left"};
|
|
|
|
max-width: ${({ maxWidth }) => maxWidth ?? "none"};
|
|
|
|
`;
|