29 lines
532 B
JavaScript
Raw Normal View History

2024-11-19 01:13:18 +08:00
import { Input, Typography } from '@douyinfe/semi-ui';
import React from 'react';
2025-04-04 12:00:38 +08:00
const TextInput = ({
label,
name,
value,
onChange,
placeholder,
type = 'text',
}) => {
2024-11-19 01:13:18 +08:00
return (
<>
<div style={{ marginTop: 10 }}>
<Typography.Text strong>{label}</Typography.Text>
</div>
<Input
name={name}
placeholder={placeholder}
onChange={(value) => onChange(value)}
value={value}
2025-04-04 12:00:38 +08:00
autoComplete='new-password'
2024-11-19 01:13:18 +08:00
/>
</>
);
2025-04-04 12:00:38 +08:00
};
2024-11-19 01:13:18 +08:00
2025-04-04 12:00:38 +08:00
export default TextInput;