Module Byo_clipboard

val copy_text : string -> unit Bonsai_web.Effect.t

An effect that copies the given text to the clipboard.

val copy_html : string -> unit Bonsai_web.Effect.t

An effect that copies the given text as text/html to the clipboard.

An effect that copies a link to the clipboard using both text/html (<a> tag) and text/plain MIME types. This provides rich formatting where supported with plain text fallback.

module With_status : sig ... end

With_status variants of all the copy functions. These return whether a copy was recently performed so UI components can display a status indicator.