radio component

This commit is contained in:
Gavin McDonald
2025-08-22 16:20:29 -04:00
parent 677af45c73
commit 3ab19e01fd
6 changed files with 61 additions and 1 deletions

View File

@@ -24,6 +24,12 @@ defmodule LabelmakerWeb.Constants do
|> Enum.map(&Atom.to_string/1)
@alignments [
"left",
"center",
"right"
]
@gravity [
"west",
"center",
"east"
@@ -92,6 +98,7 @@ defmodule LabelmakerWeb.Constants do
def max_label_error, do: @max_label_error
def outlines, do: ["none" | @colors]
def permitted_alignments, do: @alignments
def permitted_gravity, do: @gravity
def permitted_keys, do: @permitted_keys
def preview, do: @preview
def sizes, do: @sizes