@rautils/ngx-focus-tab
Library to style focused elements only by keyboard
This is a work in progress
Demo
Installation
First, install the npm module:
npm install @rautils/ngx-tab-focus --save
or
yarn add @rautils/ngx-tab-focus
Usage
Import the module
import {NgModule} from '@angular/core';
import {NgxTabFocusModule} from '@rautils/ngx-tab-focus';
@NgModule({
imports: [
NgxTabFocusModule
],
bootstrap: [AppComponent]
})
export class AppModule { }
Place the component
<tab-focus>
<p>I can be focused only by keyboard</p>
</tab-focus>