Skip to content

Commit

Permalink
fix fieldset class
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikzogg committed Mar 17, 2024
1 parent 66fcbd6 commit f6edde1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/component/form/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const FieldSet: Component<JSX.FieldsetHTMLAttributes<HTMLFieldSetElement>
props: JSX.FieldsetHTMLAttributes<HTMLFieldSetElement>,
) => {
return (
<fieldset {...props} class="mb-3 border border-gray-300 px-4 py-3">
<fieldset {...props} class={`mb-3 border border-gray-300 px-4 py-3 ${props.class ?? ''}`}>
{props.children}
</fieldset>
);
Expand Down

0 comments on commit f6edde1

Please sign in to comment.