diff --git a/packages/components/src/badge/README.md b/packages/components/src/badge/README.md index 0be531ca6f2df8..9c7eee29864a25 100644 --- a/packages/components/src/badge/README.md +++ b/packages/components/src/badge/README.md @@ -20,3 +20,7 @@ Badge variant. - Type: `"default" | "info" | "success" | "warning" | "error"` - Required: No - Default: `default` + +### `Additional Props` + + - Any other props will be passed down to the underlying `span` element \ No newline at end of file diff --git a/packages/components/src/badge/stories/index.story.tsx b/packages/components/src/badge/stories/index.story.tsx index 7f827d3bfabf5a..407ecf3068aae0 100644 --- a/packages/components/src/badge/stories/index.story.tsx +++ b/packages/components/src/badge/stories/index.story.tsx @@ -13,6 +13,22 @@ const meta = { title: 'Components/Containers/Badge', id: 'components-badge', tags: [ 'status-private' ], + args: { + children: 'Code is Poetry', + intent: 'default', + // @ts-ignore + '...props': null, + }, + argTypes: { + // @ts-ignore + '...props': { + control: { + type: null, + }, + description: + 'Any other props will be passed down to the underlying `span` element', + }, + }, } satisfies Meta< typeof Badge >; export default meta;