Files
twenty/packages/twenty-ui/src/display/typography/components/Label.tsx
Baptiste Devessier 84c299f8d4 Create a reusable Label component (#9833)
As seen with @Bonapara, I'm creating a Label component and use it in the
workflows.
2025-01-24 19:25:04 +01:00

19 lines
465 B
TypeScript

import styled from '@emotion/styled';
export type LabelVariant = 'default' | 'small';
const StyledLabel = styled.div<{ variant?: LabelVariant }>`
color: ${({ theme }) => theme.font.color.light};
font-size: ${({ variant = 'default' }) => {
switch (variant) {
case 'default':
return '11px';
case 'small':
return '9px';
}
}};
font-weight: ${({ theme }) => theme.font.weight.semiBold};
`;
export { StyledLabel as Label };