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({
|
2022-03-07 11:10:32 +00:00
|
|
|
className: `first:pl-6 last:pr-6 px-2 py-4
|
|
|
|
truncate h-tableRow
|
2022-02-17 11:53:32 +00:00
|
|
|
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"};
|
|
|
|
`;
|