Mixins / foldkit-mixins-ui

InputCopyView

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

interface InputCopyView<Message> extends Adornments {
  readonly id: string
  readonly label: string
  readonly value: string
  readonly copied: boolean
  readonly failed?: boolean | undefined
  readonly onCopy: NoInfer<Message>
  readonly words?: Partial<InputCopyWords> | undefined
  readonly copyContent?: Html | undefined
  readonly style?: NamedStyle<typeof InputCopySlots> | undefined
  readonly mixins?: MixinList<Message> | undefined
}

Members

InputCopyView.id

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

readonly id: string

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

InputCopyView.label

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

readonly label: string

InputCopyView.value

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

readonly value: string

InputCopyView.copied

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

readonly copied: boolean

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

InputCopyView.failed

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

readonly failed?: boolean | undefined

Whether the clipboard refused the copy: the status region says so, and the button stays Copy to try again.

InputCopyView.onCopy

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

readonly onCopy: NoInfer<Message>

Sent by the button; answer it with Copy.

InputCopyView.words

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

readonly words?: Partial<InputCopyWords> | undefined

InputCopyView.copyContent

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

readonly copyContent?: Html | undefined

Drawn in the button in place of its words, an icon say. The words stay in it for a screen reader, and the status region still speaks them.

InputCopyView.style

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

readonly style?: NamedStyle<typeof InputCopySlots> | undefined

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

InputCopyView.mixins

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

readonly mixins?: MixinList<Message> | undefined

Mixins beside the style.