Skip to main content
Deno 2 is finally here πŸŽ‰οΈ
Learn more
Module

x/lunchbox/src/enums.ts>ICON_SIZES

Component Library 🍱 for Deno πŸ¦• Fresh πŸ‹
Latest
variable ICON_SIZES
import { ICON_SIZES } from "https://deno.land/x/lunchbox@v1.0.2/src/enums.ts";

This module contains all "enum" types. I really prefer union strings compared to true typescript enums, because they are less verbose when using them on JSX. For exmple:

 `<div thing='foobar'>...</div>`     vs      `<div thing={ENUM_NAME.FOOBAR}>...</div>`

This module manages arrays of string constants and string union types produced from them.

type

| "xs"
| "sm"
| "md"
| "lg"
| "xl"
[]