0.0.2 • Published 3 years ago

@objekt/obj-text-field v0.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

obj-text-field

A simple text input component.

💡 Live demo

Installation

npm install @objekt/obj-text-field

Example

Primary:

<obj-text-field label="Username"></obj-text-field>

Properties

PropertyAttributeModifiersTypeDescription
disableddisabledbooleanSets to place the component in an disabled state.
errorerrorbooleanSet to place the component in an error state.
invertinvertbooleanSet to invert the component colors for rendering on dark backgrounds.
labellabelstringThe text field display label.
messagemessagestringA guide message to show under the text field.
overrideCSSResultGroupThe element style template.
placeholderplaceholderstringThe default text to display in the text field when the value is not set.
stylesreadonlyCSSResult[]
typetypestringThe text field variant type, e.g. stack, outline, inline, filled, or clear.
valuevaluestringThe value entered into the text field.

Events

EventTypeDescription
value-changedCustomEvent<string>Dispatched when the text in entered into the field.

CSS Custom Properties

Property
TODO
0.0.2

3 years ago

0.0.1

3 years ago