Skip to main content
Module

x/lunchbox/components/Input/styles.ts

Component Library 🍱 for Deno πŸ¦• Fresh πŸ‹
Latest
import * as lunchbox from "https://deno.land/x/lunchbox@v0.3.109/components/Input/styles.ts";

Style object for the <Button /> component.

Variables

This function determines the correct class name variation style for an input component depending on the attribute type. This is a quick rundown of every variation:

  • box: The default box input, this style is shared with the textarea and select components.
  • button: For inputs that have button shape.
  • bool: Boolean input types that includes radio and checkbox.
  • date: Some date/time input types have styles specific to the browser or OS, this class name standarizes them to look like the box variation.
  • range: Specific of the range type.
  • color: Specific of the color type.
  • file: Specific of the file type.