lenards/elm-ui-patternfly/2.0.0

NOTE: the latest version is 4.0.2

PF6.ClipboardCopy

PF6 ClipboardCopy component

ClipboardCopy allows users to copy content to their clipboard with a button.

See: https://www.patternfly.org/components/clipboard-copy

Definition

type ClipboardCopy msg

Opaque ClipboardCopy type

Constructor

Construct a ClipboardCopy with content text

Variant modifiers

withExpanded : Bool -> (Bool -> msg) -> ClipboardCopy msg -> ClipboardCopy msg

Expandable variant — shows truncated text with expand toggle

Inline variant — minimal display

Block (code) variant

Behavior modifiers

Set a message to send when the copy button is pressed

Rendering

toMarkup : ClipboardCopy msg -> Element msg

Render the ClipboardCopy as an Element msg