Migrate to twenty-ui - layout/card (#8003)
This PR was created by [GitStart](https://gitstart.com/) to address the requirements from this ticket: [TWNTY-7532](https://clients.gitstart.com/twenty/5449/tickets/TWNTY-7532). --- ### Description Migrate: - Card - CardContent - CardFooter - CardHeader ### Demo Card in Storybook  ###### Fixes twentyhq/private-issues#86 --------- Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com> Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
committed by
GitHub
parent
9b5d0e7850
commit
1dfeba39eb
12
packages/twenty-ui/src/layout/card/components/CardFooter.tsx
Normal file
12
packages/twenty-ui/src/layout/card/components/CardFooter.tsx
Normal file
@ -0,0 +1,12 @@
|
||||
import { css } from '@emotion/react';
|
||||
import styled from '@emotion/styled';
|
||||
|
||||
const StyledCardFooter = styled.div<{ divider?: boolean }>`
|
||||
background-color: ${({ theme }) => theme.background.primary};
|
||||
border-top: ${({ divider = true, theme }) =>
|
||||
divider ? css`1px solid ${theme.border.color.medium}` : 0};
|
||||
font-size: ${({ theme }) => theme.font.size.sm};
|
||||
padding: ${({ theme }) => theme.spacing(2, 4)};
|
||||
`;
|
||||
|
||||
export { StyledCardFooter as CardFooter };
|
||||
Reference in New Issue
Block a user