Production default
Balanced spacing, hierarchy, and content for the most common product workflow.
<Radio
value="sample-1"
/>
// Generated by scripts/generate-showcase.mjs. Do not edit directly.
page RadioDetail {
layout = "showcase"
state playground_size = ctx.url.searchParams.get("pg_size") ?? "default"
state playground_color = ctx.url.searchParams.get("pg_color") ?? "primary"
state playground_label = ctx.url.searchParams.get("pg_label") ?? "Radio"
state playground_name = ctx.url.searchParams.get("pg_name") ?? ""
state playground_value = ctx.url.searchParams.get("pg_value") ?? "sample-1"
state playground_checked = ctx.url.searchParams.get("pg_checked") ?? "false"
state playground_disabled = ctx.url.searchParams.get("pg_disabled") ?? "false"
state playground_class = ctx.url.searchParams.get("pg_class") ?? "showcase-instance showcase-instance--1"
seo {
title = "Radio"
description = "Theme-aware, responsive radio component."
}
view {
Theme-aware, responsive radio component. Change any prop and inspect the server-rendered component immediately.Radio
Configure Radio
<Radio
value="sample-1"
/>
Compare configurations and resize the browser to check responsive behavior.
Balanced spacing, hierarchy, and content for the most common product workflow.
<Radio
value="sample-1"
/>
A tighter variation for dashboards, side panels, tables, and operational interfaces.
<Radio
size="sm"
label="Compact example"
value="sample-2"
/>
A more expressive variation using additional data, stronger emphasis, and optional states.
<Radio
size="lg"
label="Advanced example"
value="sample-3"
/>
All content and behavior shown above is supplied through these props and slots.
| Prop | Type | Default | Required |
|---|---|---|---|
size | string | "default" | No |
color | string | "primary" | No |
label | string | "Radio" | No |
name | string | "" | No |
value | string | "on" | No |
checked | boolean | false | No |
disabled | boolean | false | No |
class | string | "" | No |