Componentform0.6 KB gzipZero dependencies

Radio Tile

Radio tile with icon, description and sliding dot.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add radio-tile

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { RadioTile } from "@/components/ui/radio-tile"; <RadioTile />

Source code

radio-tile.tsx + 1 helper

Zero third-party dependencies (2 local files shown in tabs below).

tsxradio-tile.tsx58 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface RadioTileProps extends React.HTMLAttributes<HTMLLabelElement> {  title: string;  description?: string;  icon?: React.ReactNode;  value: string;  checked?: boolean;  onCheckedChange?: (value: string) => void;  name?: string;} /** Radio tile card: icon + title + description + radio indicator. */export function RadioTile({ title, description, icon, value, checked, onCheckedChange, name = "radio-tile", className, ...props }: RadioTileProps) {  return (

Props

Interactive Prop Playground

Tweak parsed AST props below to generate ready-to-paste JSX.

tsx3 lines
import { RadioTile } from "@/components/ui/radio-tile"; <RadioTile />
PropTypeDescription
titlestringPrimary heading or title text.
descriptionstringDescriptive helper or subtitle text.
iconReact.ReactNodeCustom icon node rendered alongside the label.
valuestringControlled value.
checkedbooleanControlled checked state.
onCheckedChange(value: string) => voidCallback invoked on checked change.
namestringForm field name submitted during form serialization. (Default: "radio-tile")