ant-design/components/input/__tests__/demo.test.tsx

17 lines
365 B
TypeScript
Raw Normal View History

import * as React from 'react';
import demoTest, { rootPropsTest } from '../../../tests/shared/demoTest';
demoTest('input');
rootPropsTest(
'input',
(Input, props) => <Input addonBefore="Bamboo" addonAfter="Light" {...props} />,
{
name: 'addon',
},
);
rootPropsTest('input', (Input, props) => <Input.Password {...props} />, {
name: 'password',
});