redom-components
v1.0.17
Published
Lightweight, reusable UI components built with RE:DOM.
Maintainers
Readme
redom-components
Lightweight UI components built with RE:DOM, designed for flexibility and composability.
Installation
npm install redom-componentsUsage
import { Input } from "redom-components";
const input = new Input({ name: "email", type: "email", placeholder: "Enter your email" });Components
Input– Simple wrapper around an<input>element with helpful methods like.value,.focus(),.reset(), etc.Checkbox– Checkbox input with flexible label placement (wrap or side-by-side).RadioGroup– Grouped radio buttons with support for custom label layout.CollapsibleRadioGroup– A yes/no radio group that conditionally reveals content when "Yes" (or optionally "No") is selected. Includes.value,.reset(), and event proxying.LabelPosition– Enum constants for label positioning:LabelPosition.BEFORELabelPosition.AFTERLabelPosition.WRAP
License
ISC
