Skip to content

Commit

Permalink
Docs: Add pattern attribute to text-input page (#2390)
Browse files Browse the repository at this point in the history
* Docs: Add `pattern` attribute to text-input page

* Update modus-text-input-storybook-docs.mdx
  • Loading branch information
coliff authored Apr 2, 2024
1 parent 76eb482 commit 4cc83d9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion stencil-workspace/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html dir="ltr" lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Trimble Modus Web Components</title>

<script type="module" src="/build/modus-web-components.esm.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion stencil-workspace/src/sample.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html dir="ltr" lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Trimble Modus Web Components</title>

<script type="module" src="/build/modus-web-components.esm.js"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ This component is compatible with Angular reactive forms. This can be achieved t
| `ariaLabel` | `aria-label` | (optional) The input's aria-label. | `string` | `undefined` |
| `autoFocusInput` | `auto-focus-input` | (optional) Sets autofocus on the input. | `boolean` | `undefined` |
| `autocapitalize` | `autocapitalize` | (optional) Capitalization behavior when using a non-traditional keyboard (e.g. microphone, touch screen). | `boolean, "none", "off", "sentences", "on", "words", "characters"` | `undefined` |
| `autocorrect ` | `autocorrect` | (optional) (optional) Whether to activate automatic correction while the user is editing this field in Safari. | `boolean, "off", "on"` | `undefined` |
| `autocorrect ` | `autocorrect` | (optional) Whether to activate automatic correction while the user is editing this field in Safari. | `boolean, "off", "on"` | `undefined` |
| `autocomplete` | `autocomplete` | (optional) Sets autocomplete on the input. | `string` | `undefined` |
| `clearable` | `clearable` | (optional) Whether the input has a clear button. | `boolean` | `false` |
| `disabled` | `disabled` | (optional) Whether the input is disabled. | `boolean` | `undefined` |
| `enterkeyhint` | `enterkeyhint` | (optional) Which action label to present for the enter key on virtual keyboards. | `"enter", "done", "go", "next", "previous", "search", "send"` | `undefined` |
| `enterkeyhint` | `enterkeyhint` | (optional) Which action label to present for the enter key on virtual keyboards. | `"enter", "done", "go", "next", "previous", "search", "send"` | `undefined` |
| `errorText` | `error-text` | (optional) The input's error state text. | `string` | `undefined` |
| `helperText` | `helper-text` | (optional) The input's helper text displayed below the input. | `string` | `undefined` |
| `includePasswordTextToggle` | `include-password-text-toggle` | (optional) Whether the password text toggle icon is included. | `boolean` | `true` |
Expand All @@ -88,6 +88,7 @@ This component is compatible with Angular reactive forms. This can be achieved t
| `label` | `label` | (optional) The input's label. | `string` | `undefined` |
| `maxLength` | `max-length` | (optional) The input's maximum length. | `number` | `undefined` |
| `minLength` | `min-length` | (optional) The input's minimum length. | `number` | `undefined` |
| `pattern` | `pattern` | (optional) The input's HTML5 pattern. | `string` | `undefined` |
| `placeholder` | `placeholder` | (optional) The input's placeholder text. | `string` | `undefined` |
| `readOnly` | `read-only` | (optional) Whether the input's content is read-only | `boolean` | `undefined` |
| `required` | `required` | (optional) Whether the input is required. | `boolean` | `undefined` |
Expand Down

0 comments on commit 4cc83d9

Please sign in to comment.