@teamsparta/stack-bottom-sheet
Version:
stack bottom sheet
16 lines (13 loc) • 664 B
TypeScript
import * as react from 'react';
import { ComponentPropsWithoutRef, ReactNode } from 'react';
import { Drawer } from 'vaul';
interface BottomSheetContentProps extends Omit<ComponentPropsWithoutRef<typeof Drawer.Content>, "asChild"> {
/**
* 오버레이 컴포넌트
* @description 오버레이가 존재하지 않으면 모달 외부를 클릭해도 모달이 닫히지 않습니다.
* @default <BottomSheetOverlay />
*/
overlay?: ReactNode;
}
declare const BottomSheetContent: react.ForwardRefExoticComponent<BottomSheetContentProps & react.RefAttributes<HTMLDivElement>>;
export { BottomSheetContent, type BottomSheetContentProps };