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

21 lines
464 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',
});
rootPropsTest('input', (Input, props) => <Input.TextArea {...props} />, {
name: 'textarea',
});