Mixins / foldkit-mixins-ui

InputCopyView

interface · packages/mixins-ui/src/inputCopy.ts:34

interface InputCopyView<Message> {
  readonly id: string
  readonly label: string
  readonly value: string
  readonly copied: boolean
  readonly onCopy: NoInfer<Message>
  readonly copyLabel?: string | undefined
  readonly copiedLabel?: string | undefined
  readonly style?: NamedStyle<typeof InputCopySlots> | undefined
  readonly mixins?: MixinList<Message> | undefined
}

Members

InputCopyView.id

property · packages/mixins-ui/src/inputCopy.ts:36

readonly id: string

Prefixes every id the field draws, unique on the page.

InputCopyView.label

property · packages/mixins-ui/src/inputCopy.ts:37

readonly label: string

InputCopyView.value

property · packages/mixins-ui/src/inputCopy.ts:38

readonly value: string

InputCopyView.copied

property · packages/mixins-ui/src/inputCopy.ts:40

readonly copied: boolean

Whether the value was just copied, the application's to set and clear.

InputCopyView.onCopy

property · packages/mixins-ui/src/inputCopy.ts:42

readonly onCopy: NoInfer<Message>

Sent by the button; answer it with Copy.

InputCopyView.copyLabel

property · packages/mixins-ui/src/inputCopy.ts:44

readonly copyLabel?: string | undefined

The button's text; default Copy.

InputCopyView.copiedLabel

property · packages/mixins-ui/src/inputCopy.ts:46

readonly copiedLabel?: string | undefined

The button's text once copied, and what the status region says; default Copied.

InputCopyView.style

property · packages/mixins-ui/src/inputCopy.ts:48

readonly style?: NamedStyle<typeof InputCopySlots> | undefined

A style of InputCopySlots, for the field's look.

InputCopyView.mixins

property · packages/mixins-ui/src/inputCopy.ts:50

readonly mixins?: MixinList<Message> | undefined

Mixins beside the style.