mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-18 08:00:53 +08:00

* test: add a11y test for remaining components demo * chore: add time-out for a11y test function * chore: fix
15 lines
307 B
TypeScript
15 lines
307 B
TypeScript
import React from 'react';
|
|
import { DatePicker } from 'antd';
|
|
|
|
const App: React.FC = () => (
|
|
<DatePicker.RangePicker
|
|
placeholder={['Allow Empty', 'Till Now']}
|
|
allowEmpty={[false, true]}
|
|
onChange={(date, dateString) => {
|
|
console.log(date, dateString);
|
|
}}
|
|
/>
|
|
);
|
|
|
|
export default App;
|