frontend-monorepo-100 Allow Lozenge component to accept props i.e. data-testid

This commit is contained in:
sam-keen 2022-03-18 16:40:55 +00:00
parent c888ca1087
commit 37cde5fb74

View File

@ -27,9 +27,10 @@ export const Lozenge = ({
variant,
className,
details,
...props
}: LozengeProps) => {
return (
<span className={getWrapperClasses(className)}>
<span className={getWrapperClasses(className)} {...props}>
<span className={getLozengeClasses(variant)}>{children}</span>
{details && <span>{details}</span>}