Skip to content

Commit

Permalink
Add ref type on Group
Browse files Browse the repository at this point in the history
  • Loading branch information
raix committed Jul 21, 2024
1 parent d2c9ac3 commit 08c8b4e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/components/Group.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { RefAttributes } from "react";
/**
* ref: https://react-spectrum.adobe.com/react-aria-tailwind-starter/?path=/docs/textfield--docs
*/
Expand All @@ -10,7 +11,7 @@ const styles = tv({
extend: focusRing,
base: "flex rounded-md border-2 border-border [&>*:not(:last-child)]:border-r-2 [&>*:not(:last-child)]:rounded-r-none"
});
export function Group({ className, children, ...props }: Readonly<GroupProps>) {
export function Group({ className, children, ...props }: Readonly<GroupProps & RefAttributes<HTMLDivElement>>) {
return (
<AriaGroup
{...props}
Expand Down

0 comments on commit 08c8b4e

Please sign in to comment.