carboncloud / ui-library / Ui.RadioButton

Defines a RadioButton component

Types


type Direction
    = Horizontal
    | Vertical

Defines the Direction

Views

view : { onChange : a -> msg, options : List { optionLabel : String, value : a, disabled : Basics.Bool }, label : String, selected : Maybe a, direction : Direction } -> Accessibility.Styled.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.

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

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