Merge branch 'feat/inda-383-daily-stat' into 'main'
[ProtonMail-WebClient.git] / packages / pass / components / Layout / Badge / PillBadge.tsx
blobc67df1bdc944d5914d7427a2a82d257da8f5aaa1
1 import type { FC, ReactNode } from 'react';
3 import clsx from '@proton/utils/clsx';
5 type Props = {
6     backgroundColor?: string;
7     className?: string;
8     color?: string;
9     label: ReactNode;
12 export const PillBadge: FC<Props> = ({
13     backgroundColor = 'var(--interaction-norm)',
14     className,
15     color = 'var(--interaction-norm-contrast)',
16     label,
17 }) => (
18     <div
19         className={clsx('text-sm inline-block rounded-full text-normal inline-block px-2 py-0.5', className)}
20         style={{ backgroundColor, color }}
21     >
22         {label}
23     </div>