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

@tailus/themer-radio-group

v0.0.1

Published

radio group themes

Downloads

4

Readme

Radio Group Component Theme

Overview

The radio group component theme is a collection of Tailwind CSS utilities that can be used to create radio groups with different variants. Radio groups are used to allow users to select a single option from a list.

Installation

To install the radio group component theme, run the following command:

npm install @tailus/themer-radio-group

Importation

To import the radio group component theme, you can use the following import:

import { radioGroup, shadowVariant } from "@tailus/themer-radio-group";

Variants

The radio group component theme provides two variants:

  • Default (default): The default variant.
  • ShadowVariant: A variant with an inner shadow.

Props

The radio group component theme object contains the following properties:

  • root: The Tailwind CSS utilities for the root element of the radio group component.
  • indicator: The Tailwind CSS utilities for the indicator element of the radio group component.
  • label: The Tailwind CSS utilities for the label element of the radio group component.

Usage

To use the radio group component theme, simply import the appropriate variant and add its properties to the radio group element and its child elements. For example, to create a default radio group component, you would import the radioGroup variant and add its properties to the radio group element.

Example (Radix UI)

import * as RadioGroup from "@radix-ui/react-radio-group";
import { radioGroup as radioTheme } from "@tailus/themer-radio-group";

const RadioGroupUI = () => (
    <form>
        <RadioGroup.Root
            className="flex flex-col gap-2.5"
            defaultValue="problem"
            aria-label="View density"
        >
            <div className="flex items-center">
                <RadioGroup.Item className={radioTheme.item} value="understanding" id="rr1">
                    <RadioGroup.Indicator className={radioTheme.indicator} />
                </RadioGroup.Item>
                <label className={radioTheme.label} htmlFor="rr1">
                    Easy to understand
                </label>
            </div>
            <div className="flex items-center">
                <RadioGroup.Item className={radioTheme.item} value="problem" id="rr2">
                    <RadioGroup.Indicator className={radioTheme.indicator} />
                </RadioGroup.Item>
                <label className={radioTheme.label} htmlFor="rr2">
                    Solved my problem
                </label>
            </div>
            <div className="flex items-center">
                <RadioGroup.Item className={radioTheme.item} value="other" id="rr3">
                    <RadioGroup.Indicator className={radioTheme.indicator} />
                </RadioGroup.Item>
                <label className={radioTheme.label} htmlFor="rr3">
                    Other
                </label>
            </div>
        </RadioGroup.Root>
    </form>
);

export default RadioGroupUI;

ShadowVariant

To create a shadow variant radio group, you would import the shadowVariant variant and add its properties to the radio group element.

import * as RadioGroup from "@radix-ui/react-radio-group";
import { shadowVariant as radioTheme } from "@tailus/themer-radio-group";

const RadioGroupShadowVariant = () => (
    <form>
        <RadioGroup.Root
            className="flex flex-col gap-2.5"
            defaultValue="understanding"
            aria-label="View density"
        >
            <div className="flex items-center">
                <RadioGroup.Item className={radioTheme.item} value="understanding" id="srr1">
                    <RadioGroup.Indicator className={radioTheme.indicator} />
                </RadioGroup.Item>
                <label className={radioTheme.label} htmlFor="srr1">
                    Easy to understand
                </label>
            </div>
            <div className="flex items-center">
                <RadioGroup.Item className={radioTheme.item} value="problem" id="srr2">
                    <RadioGroup.Indicator className={radioTheme.indicator} />
                </RadioGroup.Item>
                <label className={radioTheme.label} htmlFor="srr2">
                    Solved my problem
                </label>
            </div>
            <div className="flex items-center">
                <RadioGroup.Item className={radioTheme.item} value="other" id="srr3">
                    <RadioGroup.Indicator className={radioTheme.indicator} />
                </RadioGroup.Item>
                <label className={radioTheme.label} htmlFor="srr3">
                    Other
                </label>
            </div>
        </RadioGroup.Root>
    </form>
);

export default RadioGroupShadowVariant;

Note: There is no customization available for the radio group component theme at this time.