Skip to content

Commit be2a006

Browse files
authored
Fix #7864: Mention add variant (#7865)
1 parent d198a4b commit be2a006

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

components/lib/mention/Mention.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,7 @@ export const Mention = React.memo(
537537
style: props.inputStyle,
538538
...inputProps,
539539
unstyled: props.unstyled,
540+
variant: props.variant,
540541
autoResize: props.autoResize,
541542
onFocus: onFocus,
542543
onBlur: onBlur,

components/lib/mention/MentionBase.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,6 @@ export const MentionBase = ComponentBase.extend({
7676
inputRef: null,
7777
inputStyle: null,
7878
itemTemplate: null,
79-
panelClassName: null,
80-
panelStyle: null,
81-
scrollHeight: '200px',
82-
style: null,
83-
suggestions: null,
84-
transitionOptions: null,
85-
trigger: '@',
8679
onBlur: null,
8780
onChange: null,
8881
onFocus: null,
@@ -91,6 +84,14 @@ export const MentionBase = ComponentBase.extend({
9184
onSearch: null,
9285
onSelect: null,
9386
onShow: null,
87+
panelClassName: null,
88+
panelStyle: null,
89+
scrollHeight: '200px',
90+
style: null,
91+
suggestions: null,
92+
transitionOptions: null,
93+
trigger: '@',
94+
variant: null,
9495
children: undefined
9596
},
9697
css: {

components/lib/mention/mention.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,11 @@ export interface MentionProps extends Omit<React.DetailedHTMLProps<React.Textare
234234
* @defaultValue "@"
235235
*/
236236
trigger?: string | string[] | undefined;
237+
/**
238+
* Specifies the input variant of the component.
239+
* @defaultValue outlined
240+
*/
241+
variant?: 'outlined' | 'filled' | undefined;
237242
/**
238243
* Uses to pass attributes to DOM elements inside the component.
239244
* @type {MentionPassThroughOptions}

0 commit comments

Comments
 (0)