├── src
├── index.css
├── index.tsx
├── components
│ ├── DisabledItem.tsx
│ ├── Spinner.tsx
│ ├── GroupItem.tsx
│ ├── type.ts
│ ├── SearchInput.tsx
│ ├── Icons.tsx
│ ├── SelectProvider.tsx
│ ├── Item.tsx
│ ├── Options.tsx
│ └── Select.tsx
├── hooks
│ └── use-onclick-outside.ts
└── constants
│ └── index.ts
├── .prettierignore
├── .eslintignore
├── next.config.js
├── assets
└── img
│ └── Screen_Shot_2022-08-04_at_17.04.09.png
├── pages
├── _app.js
└── index.js
├── postcss.config.js
├── next-env.d.ts
├── page-components
├── Header.jsx
├── SelectContainer.jsx
├── Checkbox.jsx
├── Link.jsx
├── Alert.jsx
├── Button.jsx
└── TailwindColors.jsx
├── .prettierrc
├── tailwind.config.js
├── .npmignore
├── .gitignore
├── rollup.config.js
├── tsconfig.json
├── LICENSE
├── .eslintrc.json
├── CONTRIBUTING.md
├── package.json
├── README.md
└── yarn.lock
/src/index.css:
--------------------------------------------------------------------------------
1 | @tailwind base;
2 | @tailwind components;
3 | @tailwind utilities;
4 |
--------------------------------------------------------------------------------
/src/index.tsx:
--------------------------------------------------------------------------------
1 | import Select from "./components/Select";
2 |
3 | export default Select;
4 |
--------------------------------------------------------------------------------
/.prettierignore:
--------------------------------------------------------------------------------
1 | # Folders
2 | dist/
3 | assets/
4 | .next/
5 | .rollup.cache/
6 |
7 | # Files
8 | README.md
--------------------------------------------------------------------------------
/.eslintignore:
--------------------------------------------------------------------------------
1 | # Folders
2 | dist/
3 | assets/
4 | pages/
5 | components/
6 | styles/
7 |
8 | # Files
9 | README.md
--------------------------------------------------------------------------------
/next.config.js:
--------------------------------------------------------------------------------
1 | /** @type {import('next').NextConfig} */
2 | const nextConfig = {
3 | reactStrictMode: true
4 | };
5 |
6 | module.exports = nextConfig;
7 |
--------------------------------------------------------------------------------
/assets/img/Screen_Shot_2022-08-04_at_17.04.09.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/onesine/react-tailwindcss-select/HEAD/assets/img/Screen_Shot_2022-08-04_at_17.04.09.png
--------------------------------------------------------------------------------
/pages/_app.js:
--------------------------------------------------------------------------------
1 | import "../src/index.css";
2 |
3 | const App = ({ Component, pageProps }) => {
4 | return
{title}
29 | 30 | {children} 31 |