mljr-ui · showcase

Segmented Control

Radio group styled as a connected button bar. Keyboard accessible via native radio inputs.

primitive segmented

Usage

primitive.Segmented(primitive.SegmentedProps{
    Name:    "view",
    Default: "week",
    Options: []primitive.SegmentedOption{
        {Value: "day",   Label: "Day"},
        {Value: "week",  Label: "Week"},
        {Value: "month", Label: "Month"},
    },
})