7
7
- [ RichTextarea] ( API.md#richtextarea )
8
8
- [ experimental\_ RichInput] ( API.md#experimental_richinput )
9
9
- [ createRegexRenderer] ( API.md#createregexrenderer )
10
+ - [ createCSSCustomHighlightRenderer] ( API.md#createcsscustomhighlightrenderer )
10
11
11
12
### Interfaces
12
13
@@ -41,7 +42,7 @@ Textarea component with some extra props. See [RichTextareaProps](interfaces/Ric
41
42
42
43
#### Defined in
43
44
44
- [ src/textarea.tsx:128] ( https://github.com/inokawa/rich-textarea/blob/31b5ae77b854e9571f6c66069389e36ef16f55ce /src/textarea.tsx#L128 )
45
+ [ src/textarea.tsx:128] ( https://github.com/inokawa/rich-textarea/blob/cf673fcee2721486efeabd299f561e218415000b /src/textarea.tsx#L128 )
45
46
46
47
___
47
48
@@ -65,7 +66,7 @@ Input component with some extra props. See [RichInputProps](interfaces/RichInput
65
66
66
67
#### Defined in
67
68
68
- [ src/input.tsx:138] ( https://github.com/inokawa/rich-textarea/blob/31b5ae77b854e9571f6c66069389e36ef16f55ce /src/input.tsx#L138 )
69
+ [ src/input.tsx:138] ( https://github.com/inokawa/rich-textarea/blob/cf673fcee2721486efeabd299f561e218415000b /src/input.tsx#L138 )
69
70
70
71
___
71
72
@@ -81,15 +82,37 @@ The priority is descending order.
81
82
82
83
| Name | Type |
83
84
| :------ | :------ |
84
- | ` matchers ` | [ ` RegExp ` , [ ` StyleOrRender ` ] ( API.md#styleorrender ) ][ ] |
85
+ | ` matchers ` | [ regex: RegExp, style: StyleOrRender] [ ] |
85
86
86
87
#### Returns
87
88
88
89
[ ` Renderer ` ] ( API.md#renderer )
89
90
90
91
#### Defined in
91
92
92
- [ src/renderers.tsx:17] ( https://github.com/inokawa/rich-textarea/blob/31b5ae77b854e9571f6c66069389e36ef16f55ce/src/renderers.tsx#L17 )
93
+ [ src/renderers/regex/index.tsx:19] ( https://github.com/inokawa/rich-textarea/blob/cf673fcee2721486efeabd299f561e218415000b/src/renderers/regex/index.tsx#L19 )
94
+
95
+ ___
96
+
97
+ ### createCSSCustomHighlightRenderer
98
+
99
+ ▸ ** createCSSCustomHighlightRenderer** (` matchers ` ): [ ` Renderer ` ] ( API.md#renderer )
100
+
101
+ [ createRegexRenderer] ( API.md#createregexrenderer ) but rendered with [ CSS Custom Highlight API] ( https://developer.mozilla.org/en-US/docs/Web/API/CSS_Custom_Highlight_API ) .
102
+
103
+ #### Parameters
104
+
105
+ | Name | Type |
106
+ | :------ | :------ |
107
+ | ` matchers ` | [ regex: RegExp, style: string] [ ] |
108
+
109
+ #### Returns
110
+
111
+ [ ` Renderer ` ] ( API.md#renderer )
112
+
113
+ #### Defined in
114
+
115
+ [ src/renderers/regex/index.tsx:159] ( https://github.com/inokawa/rich-textarea/blob/cf673fcee2721486efeabd299f561e218415000b/src/renderers/regex/index.tsx#L159 )
93
116
94
117
## Type Aliases
95
118
@@ -99,7 +122,7 @@ The priority is descending order.
99
122
100
123
#### Defined in
101
124
102
- [ src/renderers.tsx:4 ] ( https://github.com/inokawa/rich-textarea/blob/31b5ae77b854e9571f6c66069389e36ef16f55ce /src/renderers.tsx#L4 )
125
+ [ src/renderers/regex/index .tsx:6 ] ( https://github.com/inokawa/rich-textarea/blob/cf673fcee2721486efeabd299f561e218415000b /src/renderers/regex/index .tsx#L6 )
103
126
104
127
___
105
128
123
146
124
147
#### Defined in
125
148
126
- [ src/types.ts:1] ( https://github.com/inokawa/rich-textarea/blob/31b5ae77b854e9571f6c66069389e36ef16f55ce /src/types.ts#L1 )
149
+ [ src/types.ts:1] ( https://github.com/inokawa/rich-textarea/blob/cf673fcee2721486efeabd299f561e218415000b /src/types.ts#L1 )
127
150
128
151
___
129
152
133
156
134
157
#### Defined in
135
158
136
- [ src/types.ts:3] ( https://github.com/inokawa/rich-textarea/blob/31b5ae77b854e9571f6c66069389e36ef16f55ce /src/types.ts#L3 )
159
+ [ src/types.ts:3] ( https://github.com/inokawa/rich-textarea/blob/cf673fcee2721486efeabd299f561e218415000b /src/types.ts#L3 )
0 commit comments