xui
Version:
xUI Components for Angular
16 lines (15 loc) • 547 B
TypeScript
import { InjectionToken } from '@angular/core';
import { Observable } from 'rxjs';
export type RadioValue = string | number | null;
export type RadioColor = 'primary' | 'primary-alt' | 'secondary' | 'success' | 'warning' | 'error' | 'info' | 'none';
export interface RadioItem {
label: string;
value: RadioValue;
}
export declare const RADIO_GROUP_ACCESSOR: InjectionToken<RadioGroupAccessor>;
export interface RadioGroupAccessor {
color: RadioColor;
value: RadioValue;
disabled: boolean;
onChange$: Observable<unknown>;
}