Skip to main content
Module

x/lunchbox/src/enums.ts>LAYOUT_TYPES_ARRAY

Component Library 🍱 for Deno πŸ¦• Fresh πŸ‹
Latest
variable LAYOUT_TYPES_ARRAY
import { LAYOUT_TYPES_ARRAY } from "https://deno.land/x/lunchbox@v0.3.15/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

| "empty"
| "full"
| "center"
| "focus"
| "halves"
| "thirds"
| "right"
| "left"
[]