carboncloud/ui-library/3.2.1

NOTE: the latest version is 9.1.0

Ui.RadioButton

Defines a RadioButton component

Types

= Horizontal
| Vertical

Defines the Direction

Views

{ onChange : a -> msg
, options :
List
{ optionLabel : String
, value : a
, disabled : Bool
}
, label : String
, selected : Maybe a
, direction : Direction
}
-> Html msg

Return a view of a radio button group. This should be used whenever possible. You can use customView if you need to customize the button.

List (Attribute Never)
-> { onChange : a -> msg
, options :
List
{ optionLabel : String
, value : a
, disabled : Bool
}
, label : String
, selected : Maybe a
, direction : Direction
}
-> Html msg

Returns a custom view of a radio button group. Only use this when view is not enough.