Pagination
Pages of a long list, the current one in your Model.
forSlots(PaginationSlots)(Recipes.Pagination({}))
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 PaginationStyle = forSlots(PaginationSlots)(Recipes.Pagination({}))
export const pagination = <Message>(
style: NamedStyle<typeof PaginationSlots>,
page: number,
onPage: (page: number) => Message,
h: HtmlBuilder<Message>,
): Html => Pagination.view({ page, pageCount: 12, onPage, style }, h)