components/copy-field
Type Aliases
Section titled “Type Aliases”CopyFieldProps
Section titled “CopyFieldProps”CopyFieldProps =
object& {fieldLabel?:undefined;displayValue?:undefined; } | {fieldLabel:string;displayValue?:string; } &Omit<HTMLAttributes<HTMLDivElement>>,"children">>
Props accepted by CopyField.
Type Declaration
Section titled “Type Declaration”value:
string
label?
Section titled “label?”
optionallabel?:string
Copy action text; the code presentation defaults to “Copy”.
Functions
Section titled “Functions”CopyField()
Section titled “CopyField()”CopyField(
__namedParameters):Element
A value with an explicit copy action and visible outcome: wrapped code by
default, or a labelled read-only input when fieldLabel is given.
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”Returns
Section titled “Returns”Element