The Ng-Matero Extensions is an extended component library for Angular Material.
Check out the demos and APIs.
At first, you should install the Angular Material and setup it. Learn more about the setup.
Install the Extensions library:
$ npm install @ng-matero/extensions --save
Import the modules you need, e.g. data-grid and select.
import { MtxGridModule } from '@ng-matero/extensions/grid';
import { MtxSelectModule } from '@ng-matero/extensions/select';
@NgModule({
...
imports: [MtxGridModule, MtxSelectModule, ...],
...
})
export class YourAppModule {
}
After import modules, you must define a theme. More about theming.
@use '@ng-matero/extensions' as mtx;
@include mtx.all-component-themes($theme);
The @use-based Sass API is only available in the version 12.0.0
and above.
You can also using a pre-built theme which in the "prebuilt-themes" directory of the npm package (@ng-matero/extensions/prebuilt-themes).
@import '@ng-matero/extensions/prebuilt-themes/indigo-pink.css'
$ git clone [email protected]:ng-matero/extensions.git
$ cd extensions
$ yarn
$ yarn run start
Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
MIT