Reference Source
import {Textfield} from '@adobe/coral-spectrum'
public class | source

Textfield

Expression Extends:

class Textfield extends BaseFormField(BaseComponent(HTMLInputElement))

A Textfield component is the default single line text form field.

See:

Example:

Markup
<input is="coral-textfield"></input>
JS constructor
new Coral.Textfield();

Static Member Summary

Static Public Members
public static

Returns Textfield variants.

Member Summary

Public Members
public

The textfield's variant. See TextfieldVariantEnum.

  • TextfieldVariantEnum.DEFAULT by default.
  • reflected

Static Public Members

public static variant: TextfieldVariantEnum: * source

Returns Textfield variants.

Public Members

public variant: String source

The textfield's variant. See TextfieldVariantEnum.

  • TextfieldVariantEnum.DEFAULT by default.
  • reflected