diff --git a/README.md b/README.md index 345e2c8..d7aa5da 100644 --- a/README.md +++ b/README.md @@ -463,6 +463,55 @@ interface SelectProps { } ``` +#### Example of a custom style + +```javascript +import { useState } from "react"; +import Select from "react-tailwindcss-select"; + +const options = [ + { value: "fox", label: "🦊 Fox" }, + { value: "Butterfly", label: "🦋 Butterfly" }, + { value: "Honeybee", label: "🐝 Honeybee" } +]; + +const App = () => { + const[animal, setAnimal] =useState(null); + + const handleChange = value => { + console.log("value:", value); + setAnimal(value); + }; + + return( +