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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@jsdesign/jsd-radio-chip

v1.0.6

Published

JS Design radio web component

Downloads

4

Readme

<jsd-radio-chip>

Simple radio chip input web-component to be use accross web irrespective of frameworks.

Installation

npm install @jsdesign/jsd-radio-chip

Attributes

| Name | Type | Default | Description | ---- | ---- | ------- | ----------- | id | string | '' | Sets the id attribute for the radio input. Preferred when used inside forms. | name | string | '' | Sets the name attribute for the radio input. Preferred when used inside forms. | label | string | '' | Label to display for the radio input. | disabled | boolean | -- | When attibute is present, radio input is disabled cannot be interacted with. | required | boolean | -- | When attibute is present, the input field is marked mandatory. | list | Array | [] | Creates the radio list based on this attribute. Should be a array of value string. | value | string | '' | Sets the default checked value of the radio. | theme | string | 'light | When 'dark', the input will adapt to dark theme. | inline | boolean | -- | When attribute is present, the radio chip will be aligned inline. | full-width | boolean | -- | When attribute is present, the radio chip will take full width of the container. | error-msg | string | '' | When error message string is provided, the input will be error themed and error message is displayed.

Examples

Default Radio chip

<jsd-radio-chip id='test' name='test' value='Male' label="gender" list='["Male", "Female", "Other"]' onchange='test(event)'></jsd-radio-chip>

Inline Radio chip

<jsd-radio-chip id='gender' inline name='gender' label="gender" value='Male' list='["Male", "Female", "Other"]'></jsd-radio-chip>

Full width Radio chip

<jsd-radio-chip id='gender' full-width name='gender' label="gender" value='Male' list='["Male", "Female", "Other"]'></jsd-radio-chip>

Radio chip with error

<jsd-radio-chip id='error' name='error' value='' error-msg="Please select your gender" label="gender" list='["Male", "Female", "Other"]'></jsd-radio-chip>

Disabled Radio chip

<jsd-radio-chip id='disabled' name='disabled' disabled value='Male' label="gender" list='["Male", "Female", "Other"]'>
</jsd-radio-chip>

Cutomizable property list

| Name | Default | ---- | ---- |--color-primary | #1eba68; |--color-primary-dark | #1ba75e; |--color-secondary | #f6f6f6; |--color-secondary-dark | #efefef; |--color-secondary-darktheme | rgba(255, 255, 255, 0.3); |--color-secondary-dark-darktheme | rgba(255, 255, 255, 0.6); |--color-error | #dd4421; |--color-error-background | #ffebe6; |--color-placeholder | #737373; |--color-placeholder-disabled | #e0e0e0; |--color-placeholder-darktheme | #e0e0e0; |--color-label | #909090; |--color-black | #2c2c2c; |--color-header-black | #252525; |--color-header-tag | #747373; |--color-white | #ffffff; |--color-border | #edebeb; |--border-radius | 0.5rem; |--border-width | 1px; |--border-width-hover | 3px; |--label-spacing | 0.2rem; |--label-case | uppercase; |--label-font-size | 0.8rem; |--button-font-weight | 500;