phase 7
This commit is contained in:
1 parent
986f6cd6d8
commit
91b42027c9
6 files changed
+525
-136
No files matched your search
@@ -4,7 +4,7 @@ import type { Widget } from '../lib/types';
|
||||
interface Props { widget: Widget; onContextMenu?: (e: MouseEvent) => void; }
|
||||
|
||||
export default function TextLabel({ widget, onContextMenu }: Props) {
|
||||
const text = widget.options['text'] ?? '';
|
||||
const text = widget.options['label'] ?? widget.options['text'] ?? '';
|
||||
const fontSize = widget.options['fontSize'] ?? '1rem';
|
||||
const color = widget.options['color'] ?? '#e2e8f0';
|
||||
const align = widget.options['align'] ?? 'left';
|
||||
|
||||
Reference in new issue
Block a user