Unavailable. Nobody can download this version any more, with elm or with the Lamdera compiler: Software Heritage not asked yet (this run's --swh-calls were used up); no fork with tag 9.5.1 found (15 same-name repos checked); no cached copy. Use another version.
Creates a segmented control that supports SPA navigation.
You should always use this instead of view when building a SPA
and the segmented control options correspond to routes in the SPA.
The first parameter is a function that takes a route and returns the URL of that route.
Same shape as Config but without the content
Creates just the toggle when need the ui element itself and not a page control
Creates just the toggle when need the ui element itself and not a page control. Since this element is used for a selection and not for page navigation, it seems reasonable to handle nothing being selected. Additionally, this feels like under the hood it should be radio buttons or something that denotes selection instead of buttons. Again, Katie is mentally noting this clean up for hackday but if your heart sees fit, update if you'd like!
Changes from V7:
onClick: the message to produce when an option is selected (clicked) by the useroptions: the list of options availableselected: the value of the currently-selected optionwidth: how to size the segmented controlcontent: the panel content for the selected option