mirror of https://github.com/status-im/consul.git
5fb9df1640
* Adding explicit MPL license for sub-package This directory and its subdirectories (packages) contain files licensed with the MPLv2 `LICENSE` file in this directory and are intentionally licensed separately from the BSL `LICENSE` file at the root of this repository. * Adding explicit MPL license for sub-package This directory and its subdirectories (packages) contain files licensed with the MPLv2 `LICENSE` file in this directory and are intentionally licensed separately from the BSL `LICENSE` file at the root of this repository. * Updating the license from MPL to Business Source License Going forward, this project will be licensed under the Business Source License v1.1. Please see our blog post for more details at <Blog URL>, FAQ at www.hashicorp.com/licensing-faq, and details of the license at www.hashicorp.com/bsl. * add missing license headers * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 --------- Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com> |
||
---|---|---|
.. | ||
README.mdx | ||
index.hbs |
README.mdx
# TextInput Form component to be used for entering text values, both short form and long form. Currently an inline component but as and when we get chance this will be changed to also accept slots for specifying specific parts of the component. ```hbs preview-template <TextInput @name="single" @label="Single Line Text Input" @item={{hash single="" }} @placeholder="Placeholder: Enter some single line text here" @help="Help me if you can, I'm feeling down" /> <hr /> <TextInput @expanded={{true}} @name="Description" @label="Multiline Input" @item={{hash Description="Long form text" }} /> ``` ## Arguments | Argument | Type | Default | Description | | --- | --- | --- | --- | | `item` | `Object` | | An object whose properties are to be edited | | `name` | `String` | '' | An identifier for the property to be edited on the `item` | | `label` | `String` | `@name` | A label to use to label the text input element | | `placeholder` | `String` | | Equivalent to the HTML `placeholder=""` attribute | | `help` | `String` | | Provide some help text for the input (consider using `@validations` instead) | | `expanded` | `Boolean` | `false` | Whether to use an expanded textarea or just a normal single line input | | `validations` | `Object` | | A `validations` object to be passed to the underlying `validate` modifier | | `chart` | `Object` | | A StateChart object (implementing `state` and `dispatch` to be passed to the underlying `validate` modifier | | `oninput` | `Function` | | An event listener fired oninput to the text input | ## See - [Validate Modifier](../modifiers/validate.mdx) - [Template Source Code](./index.hbs) ---