Skip to content

Commit 5af6152

Browse files
feat: add testId prop to TextLink
1 parent bea9c01 commit 5af6152

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/design-system/text-link/text-link.component.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@ import type { OmitClassName } from '../../types';
1313
export type Props = OmitClassName<'a'> & {
1414
disabled?: boolean;
1515
label?: string;
16+
testId?: string;
1617
px?: keyof typeof spacing;
1718
};
1819

1920
export const TextLink = ({
2021
disabled = false,
2122
px = '$8',
2223
label,
24+
testId,
2325
...props
2426
}: Readonly<Props>): JSX.Element => {
2527
return (
@@ -30,6 +32,7 @@ export const TextLink = ({
3032
alignItems="center"
3133
justifyContent="center"
3234
px={px}
35+
testId={testId}
3336
>
3437
<Flex alignItems="center" justifyContent="center">
3538
<Text.Button

0 commit comments

Comments
 (0)