We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7145d39 commit d962388Copy full SHA for d962388
packages/bento-design-system/src/ReadOnlyField/ReadOnlyField.tsx
@@ -12,12 +12,18 @@ type Props = Omit<
12
"onChange" | "onBlur" | "disabled" | "isReadOnly" | "placeholder" | "issues"
13
> &
14
(
15
- | {
+ | ({
16
withCopyButton: true;
17
copyButtonLabel: LocalizedString;
18
- copySuccessMessage: LocalizedString;
19
- showToastOnCopy?: boolean;
20
- }
+ } & (
+ | {
+ copySuccessMessage: LocalizedString;
21
+ showToastOnCopy: true;
22
+ }
23
24
+ showToastOnCopy?: false;
25
26
+ ))
27
| {
28
withCopyButton?: false;
29
}
0 commit comments