Separator
A rule between groups of content.
Account
Billing
Members
forSlots(SeparatorSlots)(Recipes.Separator({}))
Usage
The function that drew the preview, over the theme module Create a theme writes. The preview passes it the style picked above instead of its default.
export const SeparatorStyle = forSlots(SeparatorSlots)(Recipes.Separator({}))
export const separator = (style: NamedStyle<typeof SeparatorSlots>, h: HtmlBuilder<never>): Html =>
h.div(
[],
[
h.p([], ['Account']),
Separator.view({ style }, h),
h.p([], ['Billing']),
Separator.view({ style }, h),
h.p([], ['Members']),
],
)