import type { JSX, ValidComponent } from "@solidjs/web";
import { dynamic } from "@solidjs/web";
import { createSignal, omit } from "solid-js";
import {
FieldsetContext,
type FieldsetContextValue,
} from "../../internals/fieldset-context.ts";
import { mergeRootProps } from "../../internals/merge-root-props";
import { resolveClassStyle } from "../../internals/resolve-class-style";
import type { BaseUIComponentProps } from "../../internals/types";
export interface FieldsetRootState {
/** Whether the fieldset group is disabled. */
disabled: boolean;
}
export interface FieldsetRootProps
extends Omit<
BaseUIComponentProps<"fieldset", FieldsetRootState>,
"aria-labelledby"
> {
/** Tag/component to render. Defaults to `"fieldset"`. */
as?: ValidComponent;
/**
* Whether the whole fieldset group should ignore user interaction.
* @default false
*/
disabled?: boolean | undefined;
}
/**
* Groups a shared legend with related controls.
* Renders a `