@swc-uxp-wrappers/textfield

2.0.0 • Public • Published

Description



This is UXP wrapper for `@spectrum-web-components/textfield` package
  • For detailed README regarding @spectrum-web-components/textfield refer this link

  • Detailed specification regarding @spectrum-web-components/textfield support in UXP through @swc-uxp-wrappers/textfield refer this link

Usage



yarn add @swc-uxp-wrappers/textfield

Import the side effectful registration of <sp-textfield> via:

import '@swc-uxp-wrappers/textfield/sp-textfield.js';

When looking to leverage the Textfield base class as a type and/or for extension purposes, do so via:

import { Textfield } from '@swc-uxp-wrappers/textfield';

Example



<sp-textfield></sp-textfield>

Known Issues

  • Focus ring is not curved on the corners
  • On enabling grows, quiet and disbaled, the text is distorted
  • On enabling grows attribute on windows, the component layout filckers while typing.
  • Font does not adapt to the T-shirt sizing due to limitation of PS/DVA platform
  • Black background appears for quiet and readonly variant in windows
  • For multiline variant, text value blinks on hovering on windows
  • In windows, after typing text with symbols example abcdss, efgh@ssss and on pressing enter results in some text value getting missed on the left side
  • Tab navigation has issues with type=password

Package Sidebar

Install

npm i @swc-uxp-wrappers/textfield

Weekly Downloads

62

Version

2.0.0

License

Apache-2.0

Unpacked Size

12.3 kB

Total Files

7

Last publish

Collaborators

  • inasirhussain
  • ledzepfan
  • bhatiapankaj