Skip to content

Implement RadioGroup Widget #10976

@michneaionuc

Description

@michneaionuc

Feature Description

RadioGroup lets users select exactly one option from a predefined set, following the Fluent UI pattern for clear, accessible single-choice selection.

The widget uses an options array of RadioOption objects (label, value, enabled), plus a value property for the selected item and a changed(value) callback for selection updates.

Code Sample:

import { RadioGroup } from "std-widgets.slint";

RadioGroup {
    title: "Target Platform";
    options: [
        { label: "Desktop", value: "desktop", enabled: true },
        { label: "Mobile", value: "mobile", enabled: true },
        { label: "Embedded", value: "embedded", enabled: true },
    ];
    value: "desktop";

    changed(value) => {
        debug("Selected platform:", value);
    }
}

Product Impact

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    a:widgetsImplementation of widgets (from std-widgets.slint) and their styles (mF,bS)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions