About
Individual radio item with label, description, and content slots. Under a coarse pointer an enabled option’s target grows toward 44 px through an invisible hit area. It never shrinks below the row and stops at half the gap to a closer neighbour; the row keeps its size. That hit area is the row’s `::after`, so decorate a row with a child. Astryx by Meta. Source: https://astryx.atmeta.com/components/RadioListItem
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Astryx Radio List Item to your project and fits it to your theme.
Code
How Astryx Radio List Item is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
'use client';
/* Copyright (c) 2026 Meta Platforms, Inc. See the MIT notice in astryx-radio-list-item.tsx. */
import '@/components/ui/astryx-radio-list-item-utils/astryx-preview.css';
import '@astryxdesign/theme-neutral/fonts.css';
import {useSyncExternalStore} from 'react';
import {Theme} from '@astryxdesign/core/theme';
import {neutralTheme} from '@astryxdesign/theme-neutral/built';
import {useState} from 'react';
import {RadioList, RadioListItem} from '@/components/ui/astryx-radio-list-item';
function OfficialSample() {
const [value, setValue] = useState('standard');
return (
<RadioList label="Shipping method" value={value} onChange={setValue}>
<RadioListItem
label="Standard"
value="standard"
description="5–7 business days"
/>
<RadioListItem
label="Express"
value="express"
description="2–3 business days"
/>
<RadioListItem
label="Overnight"
value="overnight"
description="Next business day"
/>
<RadioListItem
label="Same day"
value="sameday"
description="Not available in your area"
isDisabled
/>
</RadioList>
);
}
function readPreviewMode() {
const {classList} = document.documentElement;
return classList.contains('dark') ? 'dark' : 'light';
}
function subscribeToPreviewMode(callback: () => void) {
const observer = new MutationObserver(callback);
observer.observe(document.documentElement, {attributes: true, attributeFilter: ['class']});
return () => observer.disconnect();
}
export default function Demo() {
const mode = useSyncExternalStore(subscribeToPreviewMode, readPreviewMode, () => 'light' as const);
return (
<Theme theme={neutralTheme} mode={mode}>
<div className="astryx-demo">
<div className="astryx-demo-content" data-centered style={{maxWidth: 285}}>
<OfficialSample />
</div>
</div>
</Theme>
);
}















