frontend-monorepo-100 Allow Lozenge component to accept props i.e. data-testid
This commit is contained in:
parent
c888ca1087
commit
37cde5fb74
@ -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>}
|
||||
|
Loading…
Reference in New Issue
Block a user