import React, { useRef } from 'react'; import type { BaseDatePicker } from '../../index'; import { DatePicker, Space } from '../../../index'; /** * test in cypress */ export default function Demo() { const ref = useRef(); const handleClickOutside = () => { console.log('click outside'); ref.current && ref.current.close(); }; return ( ); } Demo.storyName = 'onClickOutside'; Demo.parameters = { chromatic: { disableSnapshot: false }, };