Adds missing label and name code example

This commit is contained in:
Tessa Kelly 2021-11-22 13:50:24 -08:00
parent 634e7b1109
commit b832bd510c

View File

@ -93,7 +93,9 @@ viewExamplesCode : SelectionSettings -> Maybe Selection -> Html Msg
viewExamplesCode selectionSettings selectedValue =
let
toExampleCode ( kind, settings ) =
"RadioButton.view\n\t[ "
"RadioButton.view { label = "
++ selectionToString kind
++ ", name = \"pets\"}\n\t[ "
++ String.join "\n\t, " (List.map Tuple.first settings)
++ "\n\t] "
in