@dgtal-ui/angular
v1.5.8
Published
Angular UI component library for the Dgtal UI design system.
Readme
@dgtal-ui/angular
Angular UI component library for the Dgtal UI design system.
Installation
npm install @dgtal-ui/angularUsage
- Import the standalone components directly in your component:
import { Component } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { ButtonComponent, InputTextComponent } from '@dgtal-ui/angular';
@Component({
selector: 'app-example',
standalone: true,
imports: [
FormsModule,
ButtonComponent,
InputTextComponent,
],
template: `
<dgtal-input-text
[(ngModel)]="value"
placeholder="Enter text..."
>
</dgtal-input-text>
<dg-button
label="Submit"
(buttonClick)="onSubmit()"
>
</dg-button>
`
})
export class ExampleComponent {
value = '';
onSubmit() {
console.log('Form submitted with value:', this.value);
}
}
## Components
- InputText: Text input component with customizable styles
- More components coming soon...
## Development
For development instructions and contribution guidelines, please refer to our [CONTRIBUTING.md](../../CONTRIBUTING.md) file.
## License
MIT © Dgtal Lab