Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/react/scaffolds/popover/popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { usePopover } from "./use-popover";

export type PopoverProps = {
children: React.ReactNode;
} & UsePopoverReturnValue;
} & Partial<UsePopoverReturnValue>;

const Popover = ({ children, ...popoverOptions }: PopoverProps) => {
const popover = usePopover(popoverOptions);
Expand Down
4 changes: 2 additions & 2 deletions packages/react/scaffolds/popover/use-popover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import {
useRole,
} from "@floating-ui/react";
import * as React from "react";
import type { UsePopoverReturnValue } from "./popover.types";
import type { PopoverOptions } from "./popover.types";

export const usePopover = (props: UsePopoverReturnValue) => {
export const usePopover = (props: PopoverOptions) => {
const {
modal = false,
triggerType = "hover",
Expand Down