Skip to content

Commit

Permalink
fix(Fieldset): remove unused types (#2838)
Browse files Browse the repository at this point in the history
  • Loading branch information
Barsnes authored Nov 27, 2024
1 parent 2b14e96 commit fa749c8
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions packages/react/src/components/form/Fieldset/Fieldset.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
import cl from 'clsx/lite';
import type { FieldsetHTMLAttributes, ReactNode } from 'react';
import type { FieldsetHTMLAttributes } from 'react';
import { forwardRef } from 'react';

import type { DefaultProps } from '../../../types';
import type { MergeRight } from '../../../utilities';

export type FieldsetProps = MergeRight<
DefaultProps & FieldsetHTMLAttributes<HTMLFieldSetElement>,
{
/** Toggle `disabled` all input fields within the fieldset. */
disabled?: boolean;
/** If set, this will diplay an error message at the bottom of the fieldset. */
error?: ReactNode;
}
>;
export type FieldsetProps = DefaultProps &
FieldsetHTMLAttributes<HTMLFieldSetElement>;

export const Fieldset = forwardRef<HTMLFieldSetElement, FieldsetProps>(
function Fieldset({ className, ...rest }, ref) {
Expand Down

0 comments on commit fa749c8

Please sign in to comment.