Skip to content

Components ​

Grafiq ships a library of sketchy components. Each is written on its own line; a quoted string is its primary text, and key=value/flags configure it.

Every mockup is editable

Hover any mockup and click </> to see (and edit!) its DSL — the mockup re-renders live as you type. Click ↺ to reset, or ⤢ to view it fullscreen. The code blocks below are the examples; there's no separate copy to fall out of date.

Each component has its own page (see the sidebar for the full alphabetical list). By category:

Everything at a glance ​

heading "Components"
row gap=20 align=start
  col gap=10
    text "Buttons" muted
    button "Default"
    button "Primary" primary
    button "Disabled" disabled
  col gap=10
    text "Inputs" muted
    input placeholder="Text field"
    search placeholder="Search…"
    select "Choose one"
  col gap=10
    text "Choices" muted
    checkbox "Checkbox" checked
    radio "Radio" selected
    toggle "Toggle" on
    slider value=60
  col gap=10
    text "Data" muted
    progress value=70
    chart type=bar w=160 h=90
    image "caption" w=160 h=80

Aliases ​

The parser accepts many synonyms so LLM-written DSL "just works". For example btn → button, img → image, hbox → row, vbox → col, dropdown/menu → select, switch → toggle, dialog → modal, window/page/phone → screen.

Released under the Apache 2.0 License.