Skip to main content

CopyText

Storybook​

Go to Story

CopyText()​

function CopyText(__namedParameters): Element;

Defined in: src/components/CopyText/CopyText.tsx:47

Displays copiable text. Useful for displaying truncated ids in a compact manner, ensuring more screen estate.

Parameters​

ParameterType
__namedParametersCopyTextProps

Returns​

Element

Examples​

// With default value
<CopyText>50e8400-e29b-41d4-a716-446655440000</CopyText>
// With custom value
<CopyText value="50e8400-e29b-41d4-a716-446655440000">Copy user UUID</CopyText>