@voidable/ui-angular
v0.1.0
Published
Angular module and services for Voidable UI web components.
Readme
@voidable/ui-angular
Angular module and services for Voidable UI web components.
Install
npm install @voidable/ui-angular @voidable/ui @voidable/themeSetup
Import VoidableModule to enable custom element schemas:
import { VoidableModule } from '@voidable/ui-angular';
@NgModule({
imports: [VoidableModule],
})
export class AppModule {}Usage
import '@voidable/ui';
import '@voidable/theme';
import { ThemeService } from '@voidable/ui-angular';
@Component({
template: `<void-button variant="filled" color="primary">Click me</void-button>`,
})
export class MyComponent {
private theme = inject(ThemeService);
currentTheme = this.theme.theme; // signal: 'dark' | 'light'
}Documentation
License
MIT
