mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-03-27 21:04:44 -05:00
* Initial * Progress * Form fields fun * Pov * Progress * Some errors * Progress * Progress * Progress * Progress * Comment * Progress * Remove comment * Fix editing * Redundant check
12 lines
296 B
TypeScript
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",
|
|
});
|
|
}
|