Shopify / ui-extensions

MIT License
249 stars 35 forks source link

Added docs and examples for FormattedTextField #2027

Closed js-goupil closed 1 month ago

js-goupil commented 1 month ago

Resolves https://github.com/Shopify/pos-next-react-native/issues/36297

Background

Adds docs and an example for FormattedTextField. Something odd that I noticed was a subtitle property on the BaseTextFieldProps that doesn't do anything. Looking on the POS side, it looks like it was a part of the old text field implementation, but even then we should not be using that at all anymore. On unstable we should be opting to only be using PFR and I'm pretty sure this has been the case anyways.

Solution

(Describe your solution, why this approach was chosen, and what the alternatives/impacts may be)

🎩

https://shopify-dev.ui-extensions-7t4u.jeansebastien-goupil.us.spin.dev/docs/api/pos-ui-extensions/unstable/components/formattedtextfield

Checklist

github-actions[bot] commented 1 month ago

We detected some changes in packages/*/package.json or packages/*/src, and there are no updates in the .changeset directory. If the changes are user-facing and should cause a version bump, run yarn changeset to track your changes and include them in the next release CHANGELOG. If you are making simple updates to repo configuration, examples, or documentation, you do not need to add a changeset.