|
|
@@ -1,9 +1,23 @@
|
|
|
-import React from "react";
|
|
|
+import React, { ChangeEvent } from "react";
|
|
|
+import Select from "./components/UI/forms/select";
|
|
|
|
|
|
function App() {
|
|
|
+ let optionList: string[] | number[] = ["a", "b", "c", "d"];
|
|
|
+
|
|
|
return (
|
|
|
<div>
|
|
|
<button className="btn btn-primary">hola</button>
|
|
|
+ <div style={{ maxWidth: "300px", margin: "auto" }}>
|
|
|
+ <Select
|
|
|
+ list={optionList}
|
|
|
+ onChange={(e: ChangeEvent<HTMLInputElement>) =>
|
|
|
+ console.log(e.target.value)
|
|
|
+ }
|
|
|
+ name="Comparación"
|
|
|
+ placeholder="Selección de comparación"
|
|
|
+ data-algo="algo"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
</div>
|
|
|
);
|
|
|
}
|