Example of how to style table components

This commit is contained in:
Jackson Harper 2022-07-20 16:08:57 -07:00
parent fdd140485e
commit 1c1db00626

View file

@ -30,6 +30,10 @@ const newThead = {
background: '#156'
}
const StyledTable = styled(ResponsiveTable, {
// Add css here
})
export function Table(props: TableProps): JSX.Element {
const iconColor = isDarkTheme() ? '#D8D7D5' : '#5F5E58'
@ -102,7 +106,7 @@ export function Table(props: TableProps): JSX.Element {
},
}}
>
<ResponsiveTable>
<StyledTable>
<Thead className={newThead}>
<Tr>
{props.headers.map((header: string, index: number) => (
@ -182,7 +186,7 @@ export function Table(props: TableProps): JSX.Element {
</Tr>
))}
</Tbody>
</ResponsiveTable>
</StyledTable>
</Box>
</VStack>
)