initial structure for components rewrite
This commit is contained in:
1 parent
944afe4a3e
commit
c391c007ff
284 files changed
+68087
-17215
No files matched your search
@@ -0,0 +1,17 @@
|
||||
import React from 'react';
|
||||
import Label from '../Label';
|
||||
|
||||
const Input = ({ label, ...rest }) => {
|
||||
return (
|
||||
<>
|
||||
<Label text="Label">
|
||||
<input
|
||||
className="transition duration-300 shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"
|
||||
{...rest}
|
||||
/>
|
||||
</Label>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default Input;
|
||||
Reference in new issue
Block a user