@ngx-uk-frontend/core
Version:
Core utilities and shared functionality for ngx-uk-frontend libraries
23 lines (22 loc) • 1.4 kB
TypeScript
import * as i0 from "@angular/core";
/**
* Base radio option directive that provides common functionality
* for radio option components across different design systems.
*
* This directive handles:
* - Option label and value configuration
* - Optional hint text
* - Divided option support (for "Or" dividers)
*/
export declare class RadioOptionDirective {
/** The displayed text for the radio option */
readonly label: import("@angular/core").InputSignal<string>;
/** The value that will be submitted when the option is selected */
readonly value: import("@angular/core").InputSignal<string>;
/** Optional hint text to provide additional context */
readonly hint: import("@angular/core").InputSignal<string | undefined>;
/** Whether this option should be preceded by a divider (e.g., "Or") */
readonly isDivided: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
static ɵfac: i0.ɵɵFactoryDeclaration<RadioOptionDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<RadioOptionDirective, never, never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "value": { "alias": "value"; "required": true; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "isDivided": { "alias": "isDivided"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
}