diff --git a/packages/smarthr-ui/src/components/TextLink/TextLink.tsx b/packages/smarthr-ui/src/components/TextLink/TextLink.tsx index 74f408e5b5..0550d31afe 100644 --- a/packages/smarthr-ui/src/components/TextLink/TextLink.tsx +++ b/packages/smarthr-ui/src/components/TextLink/TextLink.tsx @@ -49,6 +49,9 @@ const classNameGenerator = tv({ }, variants: { size: { + XS: { + anchor: 'shr-text-xs', + }, S: { anchor: 'shr-text-sm', }, diff --git a/packages/smarthr-ui/src/components/TextLink/stories/TextLink.stories.tsx b/packages/smarthr-ui/src/components/TextLink/stories/TextLink.stories.tsx index 68a8c60064..7b25181d88 100644 --- a/packages/smarthr-ui/src/components/TextLink/stories/TextLink.stories.tsx +++ b/packages/smarthr-ui/src/components/TextLink/stories/TextLink.stories.tsx @@ -98,7 +98,7 @@ export const Size: StoryObj = { name: 'size', render: (args) => ( <> - {([undefined, 'M', 'S'] as const).map((size) => ( + {([undefined, 'M', 'S', 'XS'] as const).map((size) => (

{size || 'size未指定'}