Skip to content

Commit

Permalink
feat: add testId prop to TextLink
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelCastilloB committed Sep 11, 2024
1 parent bea9c01 commit 5af6152
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/design-system/text-link/text-link.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@ import type { OmitClassName } from '../../types';
export type Props = OmitClassName<'a'> & {
disabled?: boolean;
label?: string;
testId?: string;
px?: keyof typeof spacing;
};

export const TextLink = ({
disabled = false,
px = '$8',
label,
testId,
...props
}: Readonly<Props>): JSX.Element => {
return (
Expand All @@ -30,6 +32,7 @@ export const TextLink = ({
alignItems="center"
justifyContent="center"
px={px}
testId={testId}
>
<Flex alignItems="center" justifyContent="center">
<Text.Button
Expand Down

0 comments on commit 5af6152

Please sign in to comment.