react-rich-textarea-chips 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +91 -0
- package/dist/index.cjs +54 -0
- package/dist/index.d.ts +32 -0
- package/dist/index.js +16456 -0
- package/dist/style.css +3 -0
- package/package.json +58 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
export interface PlaceholderChip {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface RichInputWithPlaceholderChipsProps {
|
|
9
|
+
/** Controlled HTML value (contains {{token}} placeholders). */
|
|
10
|
+
value?: string;
|
|
11
|
+
/** Called with a synthetic event: `e.target.value` is the serialized HTML string. */
|
|
12
|
+
onChange?: (event: { target: { value: string; name?: string; id?: string } }) => void;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
/** Chips available in the + menu. Accepts strings or {label, value} objects. */
|
|
15
|
+
placeholderChips?: Array<PlaceholderChip | string>;
|
|
16
|
+
/** Alias for placeholderChips (older name). placeholderChips wins when both set. */
|
|
17
|
+
placeholderMeta?: Array<PlaceholderChip | string>;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
id?: string;
|
|
20
|
+
name?: string;
|
|
21
|
+
className?: string;
|
|
22
|
+
contentClassName?: string;
|
|
23
|
+
maxHeight?: string;
|
|
24
|
+
minHeight?: string;
|
|
25
|
+
/** Sets minHeight to rows * 24px + 16px. */
|
|
26
|
+
rows?: number;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export declare const RichInputWithPlaceholderChips: React.FC<RichInputWithPlaceholderChipsProps>;
|
|
30
|
+
/** @deprecated Use RichInputWithPlaceholderChips */
|
|
31
|
+
export declare const RichTextareaWithPlaceholderChips: React.FC<RichInputWithPlaceholderChipsProps>;
|
|
32
|
+
export default RichInputWithPlaceholderChips;
|