You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
My components all use Temporal types like PlainDate and PlainTime, not Date, but I can't find a way to make these work with Storybook. The built-in arg controls always result in some type of error either in displaying the value or setting it.
By default I get the following error in the console:
TypeError: Do not use Temporal.PlainDate.prototype.valueOf; use Temporal.PlainDate.prototype.compare for comparison.
at PlainDate.valueOf (<anonymous>)
at new Date (<anonymous>)
I've tried setting the arg control/type to text, string, object, etc. but can't find a combo that will work. The only thing that gets my stories to show without errors is hiding Temporal args with table: { disable: true } but then I lose the ability to change their values.
Describe the solution you'd like
A built-in date and time control but for use with Temporal types, or a way to use the existing controls and map their values to/from Temporal instances.
Describe alternatives you've considered
No response
Are you able to assist to bring the feature to reality?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem? Please describe.
My components all use Temporal types like
PlainDateandPlainTime, notDate, but I can't find a way to make these work with Storybook. The built-in arg controls always result in some type of error either in displaying the value or setting it.By default I get the following error in the console:
I've tried setting the arg control/type to text, string, object, etc. but can't find a combo that will work. The only thing that gets my stories to show without errors is hiding Temporal args with
table: { disable: true }but then I lose the ability to change their values.Describe the solution you'd like
A built-in date and time control but for use with Temporal types, or a way to use the existing controls and map their values to/from Temporal instances.
Describe alternatives you've considered
No response
Are you able to assist to bring the feature to reality?
no
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions