Re-initialise Basecoat

Description

Create a script that sets up Basecoat components again. Components set themselves up on page load and when new content is added. Use this when content comes back from a cache instead.

Usage

bc_init(force = FALSE)

Arguments

Argument Description
force Bool. Rebuild components that are already set up. This closes open menus and clears focus. Defaults to FALSE.

Value

An htmltools tag.

Details

Use it for htmx history restores, where content comes back already set up.

Examples

bc_init(force = TRUE)