Details.svelte

Like details but renders children lazily by default.

view source

Declarations
#

Details
#

Details.svelte view source

accepts children

import Details from '@fuzdev/fuz_ui/Details.svelte';

open?

type boolean
optional bindable

children

type Snippet<[]>

eager?

Children are lazily rendered by default, enabling transitions and improving performance, sometimes significantly. Pass true to render children eagerly to gain ctrl+f functionality while trading away the benefits. Consider a <details> element instead of making this component eager.

type boolean
optional

summary

type string | Snippet<[]>

summary_attrs?

type HTMLAttributes<HTMLElement>
optional

intersects

SvelteHTMLElements['details']