npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

svelte-input-components

v1.0.1

Published

[![npm](https://img.shields.io/npm/v/svelte-inputs)](https://www.npmjs.com/package/svelte-input-components) [![install size](https://packagephobia.now.sh/badge?p=svelte-input-components)](https://packagephobia.now.sh/result?p=svelte-input-components) ![NP

Readme

npm install size NPM npm

svelte-input-components

Basic Input Components with Svelte

More Documentation

Contents:

Background

svelte-input-components was made for myself. I found myself copying over the same elements over and over. So I made it a package

svelte-input-component requires Svelte >= 5.0.0 svelte-input-component requires tailwind = 3.0.0

Usage

Ex:

import {
    Checklist,
    ColorInput,
    DateInput,
    Label,
    RadioBox,
    RadioBoxList,
    Select,
    TextArea
    TextInput,
    Toggle,
 } from 'svelte-input-components';

Components

Checklist

A checklist of options

<Checklist
	options={[
		{ id: '1', title: 'Option 1' },
		{ id: '2', title: 'Option 2' }
	]}
/>

ColorInput

Take in an array of colors made to select colors

<ColorInput
	id="color"
	label="Select A Color"
	groupName="colors"
	colors={[
		{ hex: '#FF5733', name: 'Sunset Orange' },
		{ hex: '#33FF57', name: 'Lime Green' },
		{ hex: '#3357FF', name: 'Royal Blue' }
	]}
/>

DateInput

Selects a date

<DateInput label="Date" id="date" />

Label

A label for components

<Label label="Label" id="labelID" />

RadioBox

A checkbox that wraps the text

<RadioBox
	label="Radio Box"
	id="radioBox"
	groupName="options"
	options={[
		{ id: '1', title: 'Option A', value: '1' },
		{ id: '2', title: 'Option B', value: '2' }
	]}
/>

RadioList

A list of check items wrapped

<RadioBoxList
	label="Radio Box List"
	id="radioBoxList"
	groupName="radioBoxList"
	options={[
		{ id: '1', title: 'Option A' },
		{ id: '2', title: 'Option B', checked: true },
		{ id: '3', title: 'Option C', subtitle: 'Subtitle C' }
	]}
/>

Select

A select drop down component

<Select
	id="select"
	label="Select"
	options={[
		{ id: 'select', label: 'Select an Option', selected: true },
		{ id: '1', label: 'Option 1' },
		{ id: '2', label: 'Option 2' }
	]}
/>

TextArea

A large text area

<TextArea id="textArea" label="Text Area" />

TextInput

A basic text input

<TextInput id="text" label="Text" />

Toggle

A Toggle element

<Toggle id="toggle" label="Checked" />

Ex:

import { TextInput } from 'svelte-input-components';

<TextInput id="text" label="Text" />;

Toggle

Development

If you'd like to contribute to the development of this project and extend the svelte-input-components library, please join us on GitHub!