@thi.ng/imgui
Version:
Immediate mode GUI with flexible state handling & data only shape output
28 lines • 799 B
TypeScript
import type { Maybe } from "@thi.ng/api";
import type { ComponentOpts } from "../api.js";
export interface RadioOpts extends Omit<ComponentOpts, "label" | "info"> {
/**
* If true (default: false), the radio buttons will be arranged
* horizontally.
*/
horizontal?: boolean;
/**
* If true (default: false), the radio buttons will be square and the labels
* positioned next to it.
*/
square?: boolean;
/**
* Index of selected radio item
*/
value: number;
/**
* Radio item labels
*/
label: string[];
/**
* Radio item tooltips
*/
info?: string[];
}
export declare const radio: ({ gui, layout, id, horizontal, square, value, label, info, }: RadioOpts) => Maybe<number>;
//# sourceMappingURL=radio.d.ts.map