Skip to content

data-handler/redom-components

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

redom-components

Lightweight UI components built with RE:DOM, designed for flexibility and composability.

Installation

npm install redom-components

Usage

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.BEFORE
    • LabelPosition.AFTER
    • LabelPosition.WRAP

License

ISC

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors