Elements

Components

Clipboard

Clipboard, dressed in the paper-and-ink system: a hairline value field beside an icon-sized copy trigger whose ink turns bamboo while the copy is confirmed. The parts — Root, Label, Control, Input, Trigger, Indicator, Context, HiddenInput.

#Basic usage

clipboard/basic Vue React

#Props

#Control

A styled part — no props of its own; it takes the anatomy's shared styling.

#Indicator

A styled part — no props of its own; it takes the anatomy's shared styling.

#Input

A styled part — no props of its own; it takes the anatomy's shared styling.

#Label

A styled part — no props of its own; it takes the anatomy's shared styling.

#Root

PropTypeDefaultDescription
sizeString as PropType<"sm" | "md" | "lg">"md"One rung of the control-height ladder for the value field and its copy seal.
defaultValuestringThe initial value to be copied to the clipboard when rendered. Use when you don't need to control the value of the clipboard.
idstringThe unique identifier of the machine.
idsPartial<{ root: string; input: string; label: string; }>The ids of the elements in the clipboard. Useful for composition.
modelValuestringThe v-model value of the clipboard
timeoutnumber3000The timeout for the copy operation
translationsclipboard.IntlTranslationsSpecifies the localized strings that identifies the accessibility elements and their states

#Trigger

A styled part — no props of its own; it takes the anatomy's shared styling.

#ValueText

A styled part — no props of its own; it takes the anatomy's shared styling.