# w-input-text

<w-input-text label="Name"></w-input-text></div>

# API

# w-input-text

# Properties

Property Attribute Description Type Default
autocomplete autocomplete input html tag "autocomplete" attribute, defaults to "" string ''
autofocus autofocus input html tag "autofocus" attribute, defaults to "false" boolean false
error error error message displayed in the form group, defaults to "" string ''
inputmode inputmode input html tag "inputmode" attribute, defaults to "" string 'text'
label label label for the form group, defaults to "" string ''
placeholder placeholder input html tag "placeholder" attribute, if not set defaults to "label" prop value string ''
required required input html tag "required" attribute, defaults to "false" boolean false
strip strip a regex string (new RegExp is creted from this string) that is stripped from input value (replaced with an empty string) could be used to strip protocol and route from an URL to get website name for example strip="^http[s]?😕/" will strip out the protocol from an URL and strip="^http[s]?😕/|/$|.examplemaindomain.com.*" will leave subdomain value only. combined with suffix=".examplemaindomain.com" will allow to get website name without protocol and any route, query etc. string ''
suffix suffix a string displayed inside input form field group as appended label and added to visible input value could be used to get from user an URL in a specific domain for example somesubdomain[.examplemaindomain.com] string ''
type type input html tag "type" attribute, defaults to "text" string 'text'
value value value, defaults to "" string undefined

Built with StencilJS (opens new window)