Input: Writing migration guide from v0 and v8#22780
Conversation
Provides a basic example for v8 TextField and v9 Input along with a prop mapping table for the two implementations.
Had text "v9" that should have been "v0".
Adds a basic v0 Input to v9 Input upgrade example along with a prop mapping table.
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit a150b82:
|
📊 Bundle size report🤖 This report was generated against c45f4a6c3dd09c77ce5f5f5e2926ce9494169e99 |
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: c45f4a6c3dd09c77ce5f5f5e2926ce9494169e99 (build) |
| | v8 | v9 | Notes | | ||
| | ---------------------- | ------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | | ||
| | `accessibility` | n/a | | | ||
| | `as` | n/a | | |
There was a problem hiding this comment.
The as prop should exist on the v9 Input AFAIK
There was a problem hiding this comment.
Technically the as prop exists on v9 but with the way all Slots are defined on Input the element types cannot be changed.
This makes sense to me since I don't think we'd ever want to render anything other than an <input> tag.
…Input.stories.mdx Co-authored-by: Makoto Morimoto <[email protected]>
…Input.stories.mdx Co-authored-by: Makoto Morimoto <[email protected]>
* react-input: add v8->v9 upgrade guide Provides a basic example for v8 TextField and v9 Input along with a prop mapping table for the two implementations. * react-radio: fix typo Had text "v9" that should have been "v0". * react-input: add v0->v9 upgrade guide Adds a basic v0 Input to v9 Input upgrade example along with a prop mapping table. * feedback from pr * Update apps/public-docsite-v9/src/Concepts/Upgrade/FromV8/Components/Input.stories.mdx Co-authored-by: Makoto Morimoto <[email protected]> * Update apps/public-docsite-v9/src/Concepts/Upgrade/FromV0/Components/Input.stories.mdx Co-authored-by: Makoto Morimoto <[email protected]> Co-authored-by: Makoto Morimoto <[email protected]>

Current Behavior
There is no upgrade guide for
TextFieldto v9InputInputto v9InputNew Behavior
There is an upgrade guide for
TextFieldto v9InputInputto v9InputRelated Issue(s)
Fixes #22769