mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
Text Area Hash Tag Autocompletion Styling
This commit is contained in:
parent
15041b74b5
commit
18bb8e6ad2
@ -34,10 +34,14 @@ export function TextAreaInput({ labelTitle, dataField, labelStyle, containerStyl
|
|||||||
})
|
})
|
||||||
|
|
||||||
var tribute = new Tribute({
|
var tribute = new Tribute({
|
||||||
containerClass: 'tw-z-500 tw-bg-gray-200 tw-p-2',
|
containerClass: 'tw-z-500 tw-bg-white tw-p-2 tw-rounded',
|
||||||
selectClass: 'tw-font-bold',
|
selectClass: 'tw-font-bold',
|
||||||
trigger: "#",
|
trigger: "#",
|
||||||
values: values
|
values: values,
|
||||||
|
menuItemTemplate: function (item) {
|
||||||
|
console.log(item);
|
||||||
|
return `<span style="color: ${item.original.color}; padding: 5px; boarder-radius: 3px;">#${item.string}</span>`;
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user