src/input/input.directive.ts
A directive for applying styling to an input element.
Example:
<input ibmText/>See the vanilla carbon docs for more detail.
| selector | [ibmText] |
HostBindings |
| class.bx--text-input |
class.bx--text-input:
|
Default value : true
|
|
Defined in src/input/input.directive.ts:18
|
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;
}