"use client"; /* * Documentation: * Checkbox Group — https://app.subframe.com/f023064a5ca0/library?component=Checkbox+Group_f9f1b596-c6b3-4d60-aa9a-f34b353f8aa5 */ import React from "react"; import * as SubframeUtils from "../../utils"; export interface CheckboxGroupRootProps extends React.HTMLAttributes { label?: React.ReactNode; helpText?: React.ReactNode; error?: boolean; horizontal?: boolean; children?: React.ReactNode; className?: string; } const CheckboxGroupRoot = React.forwardRef< HTMLDivElement, CheckboxGroupRootProps >(function CheckboxGroupRoot( { label, helpText, error = false, horizontal = false, children, className, ...otherProps }: CheckboxGroupRootProps, ref ) { return (
{label ? ( {label} ) : null} {children ? (
{children}
) : null} {helpText ? ( {helpText} ) : null}
); }); export const CheckboxGroup = CheckboxGroupRoot;