button

Текущая схема элемента в бд:

{
    "props": {
        "link": {
            "type": "string",
            "label": "Ссылка",
            "default": ""
        },
        "color": {
            "type": "color",
            "label": "Цвет текста",
            "default": "#ffffff"
        },
        "content": {
            "type": "textarea",
            "label": "Текст",
            "default": "Новый текст"
        },
        "fontSize": {
            "max": 72,
            "min": 12,
            "type": "number",
            "label": "Размер шрифта",
            "default": 24
        },
        "rotation": {
            "max": 360,
            "min": 0,
            "step": 1,
            "type": "range",
            "label": "Поворот",
            "units": "deg",
            "default": 0
        },
        "fontFamily": {
            "type": "select",
            "label": "Шрифт",
            "default": "Inter",
            "options": [
                "Inter",
                "Arial",
                "Roboto"
            ]
        },
        "fontWeight": {
            "type": "select",
            "label": "Начертание",
            "default": "normal",
            "options": [
                "normal",
                "bold",
                "bolder",
                "lighter"
            ]
        },
        "lineHeight": {
            "max": 3,
            "min": 1,
            "step": 0.1,
            "type": "range",
            "label": "Межстрочный интервал",
            "units": "",
            "default": 1.4
        },
        "borderColor": {
            "type": "color",
            "label": "Цвет рамки",
            "default": "#000000"
        },
        "borderStyle": {
            "type": "select",
            "label": "Стиль рамки",
            "default": "solid",
            "options": [
                "solid",
                "dashed",
                "dotted",
                "double"
            ]
        },
        "borderWidth": {
            "max": 20,
            "min": 0,
            "step": 1,
            "type": "range",
            "label": "Толщина рамки",
            "units": "px",
            "default": 0
        },
        "letterSpacing": {
            "max": 10,
            "min": 0,
            "step": 0.1,
            "type": "range",
            "label": "Интервал между буквами",
            "units": "",
            "default": 0
        },
        "backgroundColor": {
            "type": "color",
            "label": "Цвет фона",
            "default": "#000000"
        }
    }
}

Последнее обновление