@fylgja/input-group v2.0.0
Fylgja Input Group
The Fylgja Input Group component allows you to group inputs and buttons together to create more intuitive form controls.
This component is ideal for building various UI elements such as search bars, button groups, or rating systems using radio buttons.
Installation
You can install Fylgja Input Group via npm or other Node-based package managers like pnpm or bun:
npm install @fylgja/input-groupAlternatively, you can use it directly via a CDN:
<link href="https://cdn.jsdelivr.net/npm/@fylgja/input-group/index.min.css" rel="stylesheet">Usage
Once installed, you can import the full package with:
@import "@fylgja/input-group";Alternatively, if you only need specific parts, you can import them individually:
| Import Path | Description |
|---|---|
@fylgja/input-group/base | Contains to core of the Input Group |
@fylgja/input-group/merge | Contains the --merge modifier class |
@fylgja/input-group/steps | Contains the --steps modifier class |
Modifiers
--merge
The --merge modifier merges all borders between elements in an input group, making them appear as a unified component.
--steps
The --steps modifier adds stepping functionality, mainly used with radio buttons or checkbox groups to create a range-like input.