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

x/lunchbox/src/types.ts>iComponent

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

This type is used for standarizing all components. By design every component must have a protagonic HTMLElement that inherits its attributes, the GenericComponent properties, Aria atributes, and Event Handlers. See more

nostyle? (boolean): This prop removes the default styles of the component.

nostyleAll? (boolean): This prop removes the default styles and the class names of all HTMLElements in the component.

Type Parameters

optional
T extends EventTarget = HTMLElement
definition: iElement<T> & { nostyle?: boolean; nostyleAll?: boolean; }