Package-level declarations

Types

Link copied to clipboard

A callback scope for listeners that inform the user about events associated with an underlying raw DOM element.

Link copied to clipboard
class GenericElementBuilder : ElementBuilder<Element>

A useful ElementBuilder for when you don't care about its specific type.

Link copied to clipboard
class GenericNamespacedElementBuilder : ElementBuilder<Element>

A useful ElementBuilder for elements that need to use the createElementNS method for creation.

Functions

Link copied to clipboard
fun <TElement : Element> disposableRef(vararg keys: Any?, effect: DisposableEffectScope.(TElement) -> DisposableEffectResult): ElementRefScope<TElement>

Create a ref listener which informs you both when a raw element is added to the DOM tree and when it is removed.

Link copied to clipboard
@Composable
fun GenericTag(name: String, attrsStr: String? = null, content: @Composable ElementScope<Element>.() -> Unit? = null)

A way to easily specify a generic tag and optional attributes.

@Composable
fun <E : Element> GenericTag(name: String, namespace: String? = null, attrs: AttrBuilderContext<E>? = null, content: @Composable ElementScope<E>.() -> Unit? = null)

Like the other GenericTag but allows richer typing as well as namespaced elements.

Link copied to clipboard
@Composable
fun RawHtml(htmlString: String)

Generate Compose nodes for general HTML input text.

Link copied to clipboard
fun <TElement : Element> ref(vararg keys: Any?, handle: (TElement) -> Unit): ElementRefScope<TElement>

Create a trivial ref listener where you're informed about when a raw element is added to the DOM tree.

Link copied to clipboard

Create a scope which lets you specify any number of ref and disposableRef handlers.

Link copied to clipboard
@Composable
fun <TElement : Element> ElementScope<TElement>.registerRefScope(scope: ElementRefScope<TElement>?)

Convenience method for installing an ElementRefScope into an ElementScope.

A more flexible version of registerRefScope which allows you to transform the element type of the scope.