chakra-ui / chakra-ui-docs

Documentation website for chakra ui
https://chakra-ui.com
MIT License
303 stars 475 forks source link

Update Input Component docs to not pass children as props, but as nodes #1682

Closed mfucek closed 9 months ago

mfucek commented 9 months ago

📝 Description

Update usage.mdx (https://chakra-ui.com/docs/components/input) to not use the children prop, but express the children as child node.

⛳️ Current behavior (updates)

In the examples, some string children are defined through a prop.

🚀 New behavior

In this proposal, the string children are passed as child nodes in the dom tree for improved clarity, instead of being passed as a prop.

💣 Is this a breaking change (Yes/No):

No.

📝 Additional Information

https://chakra-ui.com/docs/components/input

vercel[bot] commented 9 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
chakra-ui-docs ✅ Ready (Inspect) Visit Preview Dec 21, 2023 3:07pm