"use client"; /* * Documentation: * Radio Card Group — https://app.subframe.com/f023064a5ca0/library?component=Radio+Card+Group_6d5193b8-6043-4dc1-aad5-7f902ef872df */ import React from "react"; import * as SubframeCore from "@subframe/core"; import * as SubframeUtils from "../../utils"; export interface RadioCardProps extends React.ComponentProps { disabled?: boolean; hideRadio?: boolean; children?: React.ReactNode; className?: string; } const RadioCard = React.forwardRef( function RadioCard( { disabled = false, hideRadio = false, children, className, ...otherProps }: RadioCardProps, ref ) { return ( ); } ); export interface RadioCardGroupRootProps extends React.ComponentProps { children?: React.ReactNode; value?: string; onValueChange?: (value: string) => void; className?: string; } const RadioCardGroupRoot = React.forwardRef< HTMLDivElement, RadioCardGroupRootProps >(function RadioCardGroupRoot( { children, className, ...otherProps }: RadioCardGroupRootProps, ref ) { return children ? (
{children}
) : null; }); export const RadioCardGroup = Object.assign(RadioCardGroupRoot, { RadioCard, });