Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

test(Tokenizer): the end-lane contract's hasClear URL arg reaches the story (#8828)

Cindy Zhang90da4a77b6b3
diff --git a/apps/storybook/stories/Tokenizer.stories.tsx b/apps/storybook/stories/Tokenizer.stories.tsx
index 5a303c4430..a589fabcc6 100644
--- a/apps/storybook/stories/Tokenizer.stories.tsx
+++ b/apps/storybook/stories/Tokenizer.stories.tsx
@@ -69,7 +69,10 @@ const meta: Meta<typeof Tokenizer> = {
},
isRequired: {control: 'boolean'},
isOptional: {control: 'boolean'},
- hasClear: {control: 'boolean'},
+ // Docgen cannot read Tokenizer's prop types through its overloaded
+ // signature, and Storybook drops a URL arg (`args=hasClear:!true`) whose
+ // argType names no type. The browser end-lane contract sets it that way.
+ hasClear: {control: 'boolean', type: 'boolean'},
maxEntries: {control: 'number'},
size: {
control: 'radio',