# Input [component-header:sl-input] Inputs collect data from the user. ```html preview ``` ?> This component doesn't work with standard forms. Use [``](/components/form) instead. ?> Please refer to the section on [form control validation](/components/form?id=form-control-validation) to learn how to do client-side validation. ## Examples ### Placeholders Use the `placeholder` attribute to add a placeholder. ```html preview ``` ### Clearable Add the `clearable` attribute to add a clear button when the input has content. ```html preview ``` ### Toggle Password Add the `toggle-password` attribute to add a toggle button that will show the password when activated. ```html preview

``` ### Filled Inputs Add the `filled` attribute to draw a filled input. ```html preview ``` ### Pill Use the `pill` attribute to give inputs rounded edges. ```html preview

``` ### Input Types The `type` attribute controls the type of input the browser renders. ```html preview

``` ### Disabled Use the `disabled` attribute to disable an input. ```html preview

``` ### Sizes Use the `size` attribute to change an input's size. ```html preview

``` ### Prefix & Suffix Icons Use the `prefix` and `suffix` slots to add icons. ```html preview

``` ### Labels Use the `label` attribute to give the input an accessible label. For labels that contain HTML, use the `label` slot instead. ```html preview ``` ### Help Text Add descriptive help text to an input with the `help-text` attribute. For help texts that contain HTML, use the `help-text` slot instead. ```html preview ``` [component-metadata:sl-input]