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
For the return type, use ReactElement instead of JSX.Element. However, if the function is already typed, such as via StoryObj.render, then we don't need to provide an explicit return type:
When writing descriptions, manually break lines at sentences or clauses, not at arbitrary fixed column like 80 or 100:
// Before`This is a sentence. This isanother sentence, with 2 clauses.`// After/** * This is a sentence. * This is another sentence, * with 2 clauses. */
In meta, use docsMetaParameters instead of Utils.page.component:
At the
develop
branch, the Button component is migrated as an example. Let's migrate the rest of them.Use the guide below to migrate them.
Migration Guide
StoryObj
) instead of function (StoryFn
):ReactElement
instead ofJSX.Element
. However, if the function is already typed, such as viaStoryObj.render
, then we don't need to provide an explicit return type:Utils.story
. Remember to unescape the grave accent ("`") character:docsMetaParameters
instead ofUtils.page.component
:docsMetaArgTypes
instead ofUtils.arg
:instead of defining the props interface again:
The text was updated successfully, but these errors were encountered: