File

src/input/input.directive.ts

Description

A directive for applying styling to an input element.

Example:

<input ibmText/>

See the vanilla carbon docs for more detail.

Metadata

selector [ibmText]

Index

HostBindings

HostBindings

class.bx--text-input
class.bx--text-input:
Default value : true
import { Directive, HostBinding } from "@angular/core";

/**
 * A directive for applying styling to an input element.
 *
 * Example:
 *
 * ```html
 * <input ibmText/>
 * ```
 *
 * See the [vanilla carbon docs](http://www.carbondesignsystem.com/components/text-input/code) for more detail.
 */
@Directive({
	selector: "[ibmText]"
})
export class TextInput {
	@HostBinding("class.bx--text-input") inputClass = true;
}

results matching ""

    No results matching ""