@fylgja/input-group

2.0.0 • Public • Published

Fylgja Input Group

NPM version NPM Downloads License

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-group

Alternatively, 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.

Package Sidebar

Install

npm i @fylgja/input-group

Homepage

fylgja.dev/

Weekly Downloads

73

Version

2.0.0

License

MIT

Unpacked Size

11 kB

Total Files

13

Last publish

Collaborators

  • grimlink
  • allrude