sendou.ink/app/components/form/form-utils.ts
Kalle 198010e3e7
Some checks are pending
Tests and checks on push / run-checks-and-tests (push) Waiting to run
Updates translation progress / update-translation-progress-issue (push) Waiting to run
New date picker + VoD form rework (#2055)
* Initial

* Progress

* Form fields fun

* Pov

* Progress

* Some errors

* Progress

* Progress

* Progress

* Progress

* Comment

* Progress

* Remove comment

* Fix editing

* Redundant check
2025-01-26 12:56:19 +02:00

12 lines
296 B
TypeScript

import clsx from "clsx";
export type FormFieldSize = "extra-small" | "small" | "medium";
export function formFieldSizeToClassName(size?: FormFieldSize) {
return clsx({
"input__extra-small": size === "extra-small",
input__small: size === "small",
input__medium: size === "medium",
});
}