import type { CSSProperties, FieldsetHTMLAttributes, ReactNode } from "react";
export interface FieldsetProps extends FieldsetHTMLAttributes {
/**
* The legend to display. This is required since a fieldset loses most of its'
* benefit for accessibility without a legend.
*/
legend: ReactNode;
/**
* An optional style to apply to the legend element.
*/
legendStyle?: CSSProperties;
/**
* An optional classname to apply to the legend.
*/
legendClassName?: string;
/**
* Boolean if the legend should only be styled to be visible for screen
* readers.
*/
legendSROnly?: boolean;
/**
* Boolean if the fieldset should remove the default browser styles of margin,
* padding, and border.
*/
unstyled?: boolean;
}
/**
* This is a simple wrapper for the `