UNPKG

@thi.ng/rdom-components

Version:

Collection of unstyled, customizable components for @thi.ng/rdom

11 lines 630 B
import type { Fn, Fn2 } from "@thi.ng/api"; import { type InputRadioAttribs } from "@thi.ng/hiccup-html/forms"; import type { ComponentLike } from "@thi.ng/rdom"; import type { ISubscription } from "@thi.ng/rstream"; export interface RadioOpts<T> { attribs: Partial<InputRadioAttribs>; label: Fn2<T, ComponentLike, ComponentLike>; value: Fn<T, string>; } export declare const staticRadio: <T = string>(items: T[], sel: ISubscription<string, string>, opts?: Partial<RadioOpts<T>>) => [string, import("@thi.ng/api").Nullable<Partial<import("@thi.ng/hiccup-html").Attribs>>, ...any[]]; //# sourceMappingURL=radio.d.ts.map