Skip to content

Commit

Permalink
docs: fixed Input is not defined in TransitionReplace component (#2393)
Browse files Browse the repository at this point in the history
  • Loading branch information
PKulkoRaccoonGang authored Jun 23, 2023
1 parent 86df23e commit cc022bb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/TransitionReplace/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ TransitionReplace expects only one child at any time. Swap content inside the co
<div>
<TransitionReplace className="mb-3">
{isEditing ? (
<form key="the-form">
<label htmlFor="name">First Name</label>
<Input type="text" value="some name" />
</form>
<Form.Group>
<Form.Label>First Name</Form.Label>
<Form.Control value="some name" />
</Form.Group>
) : (
<div key="other">
<h4 className="mt-0">First Name</h4>
Expand Down

0 comments on commit cc022bb

Please sign in to comment.