ant-design/components/input/__tests__/demo.test.tsx
MadCcc 54a2df3f53
fix: input should have correct padding with controlHeight (#45048)
* fix: input should have correct padding with controlHeight

* chore: update snapshot

* chore: update snapshot
2023-09-25 11:44:17 +08:00

23 lines
502 B
TypeScript

import * as React from 'react';
import demoTest, { rootPropsTest } from '../../../tests/shared/demoTest';
demoTest('input', {
skip: ['component-token.tsx'],
});
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',
});