{"id":23786024,"url":"https://github.com/awebcode/smiley-input","last_synced_at":"2026-02-09T17:33:12.611Z","repository":{"id":270174830,"uuid":"909547340","full_name":"awebcode/smiley-input","owner":"awebcode","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-08T12:04:45.000Z","size":617,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-29T00:44:50.014Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://smiley-input.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/awebcode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-29T03:19:52.000Z","updated_at":"2025-01-08T12:04:49.000Z","dependencies_parsed_at":"2024-12-29T04:19:25.292Z","dependency_job_id":"06611bf0-d8b9-4a7e-9518-8fd8e2debf9d","html_url":"https://github.com/awebcode/smiley-input","commit_stats":null,"previous_names":["awebcode/smiley-input"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/awebcode/smiley-input","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awebcode%2Fsmiley-input","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awebcode%2Fsmiley-input/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awebcode%2Fsmiley-input/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awebcode%2Fsmiley-input/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/awebcode","download_url":"https://codeload.github.com/awebcode/smiley-input/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awebcode%2Fsmiley-input/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273858543,"owners_count":25180763,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-01T14:10:50.538Z","updated_at":"2026-02-09T17:33:07.558Z","avatar_url":"https://github.com/awebcode.png","language":"TypeScript","readme":"# smiley-input 😄😎✅👀\n\n`smiley-input` is a React component that enables users to input text and emojis effortlessly. This component is ideal for chat applications, social media platforms, and any interactive applications where emoji input is required.\n\n## Live Demo\n\nCheck out the  [Live Demo here](https://smiley-input.vercel.app/).\n\nWatch the video demo on [YouTube](https://youtu.be/PTPCZTBhw9Y).\n\n![Screenshot](https://raw.githubusercontent.com/awebcode/smiley-input/master/src/assets/smiley-input.png)\n\n## Features\n\n- Easy integration into any React application\n\n- Customizable emoji picker\n\n- Supports emoji insertion at the cursor position\n\n- Responsive design for different screen sizes\n\n- Configurable emoji picker options\n\n- Styled with Tailwind CSS\n\n## Installation\n\nTo install the package, run the following command:\n\n```bash\n\nnpm install smiley-input\n\n```\n\nor using yarn/bun:\n\n```bash\n\nyarn add smiley-input || bun add  smiley-input\n\n```\n\n## Usage\n\nHere is a simple example to get you started with `smiley-input`:\n\n### Import the Component\n\n```jsx\nimport React, { useState } from \"react\";\n\nimport { SmileyInput } from \"smiley-input\";\n\nconst App = () =\u003e {\n  const [message, setMessage] = useState(\"\");\n\n  const handleSendMessage = (value) =\u003e {\n    console.log(\"Message sent:\", value);  # Api Call\n    setMessage(\"\");\n  };\n\n  return (\n    \u003cdiv className=\"p-4\"\u003e\n           {\" \"}\n      \u003cSmileyInput\n        value={message}\n        setValue={setMessage}\n        keepOpened={true}\n        className=\"custom-textarea\"\n        pickerOptions={{\n          theme: \"light\",\n        }}\n        emojiButtonElement=\"😊\"\n        emojiButtonClassName=\"custom-emoji-button h-8 w-8\"\n      /\u003e\n            \u003cbutton\n        className=\"mt-2 px-4 py-2 bg-violet-500 text-white rounded\"\n        onClick={() =\u003e handleSendMessage(message)}\n      \u003e\n        Send\n      \u003c/button\u003e   {\" \"}\n    \u003c/div\u003e\n  );\n};\n\nexport default App;\n```\n\n### Tailwind CSS Setup\n\nIf you haven't already set up Tailwind CSS in your project, follow these steps:\n\n1\\. Install Tailwind CSS:\n\n```bash\n\nnpm install -D tailwindcss postcss autoprefixer\n\nnpx tailwindcss init -p\n\n```\n\n2\\. Configure your `tailwind.config.js`:\n\n```js\n\n// tailwind.config.js\n\nmodule.exports = {\n\ncontent: [\n\n'./src/\\*_/_.{js,jsx,ts,tsx}',\n\n],\n\ntheme: {\n\nextend: {},\n\n},\n\nplugins: [],\n\n}\n\n```\n\n3\\. Add Tailwind's directives to your CSS file:\n\n```css\n\n/_ styles.css _/\n\n@tailwind base;\n\n@tailwind components;\n\n@tailwind utilities;\n\n```\n\n4\\. Import the CSS file in your entry point (e.g., `index.tsx`):\n\n```jsx\n\nimport './styles.css';\n\n```\n\n### Example Styles\n\n```css\n\n/* Custom styles for the textarea and emoji button */\n\n.custom-textarea {\n\n  @apply border border-gray-300 p-2 text-base rounded-md;\n\n}\n\n.custom-emoji-button {\n\n  @apply bg-none border-none cursor-pointer text-lg;\n\n}\n\n```\n\n## Props\n\nThe `SmileyInput` component accepts the following props:\n\n| Prop                | Type                                            | Description                                              |\n\n|---------------------|-------------------------------------------------|----------------------------------------------------------|\n\n| `value`             | `string`                                        | The current value of the input                           |\n\n| `setValue`          | `(value: string) =\u003e void`                       | Function to update the input value                       |\n\n| `keepOpened`        | `boolean`                                       | Keep the emoji picker open after selecting an emoji      |\n\n| `className`         | `string`                                        | Custom class name for the input                          |\n\n| `pickerOptions`     | `Omit\u003cEmojiPickerProps, 'data' | 'onEmojiSelect'\u003e` | Configuration options for the emoji picker               |\n\n| `emojiButtonElement`| `React.ReactNode`                               | Custom element for the emoji button                      |\n\n| `emojiButtonClassName`| `string`                                      | Custom class name for the emoji button                   |\n\n## Contributing\n\nContributions are welcome! If you find a bug or have a feature request, please open an issue. If you would like to contribute code, please open a pull request.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](./LICENSE) file for details.\n\n---\n\nThis README now includes live demo links at the beginning, along with the rest of the essential information to help users get started with `smiley-input`. If you need any further adjustments or additional information, feel free to ask!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawebcode%2Fsmiley-input","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fawebcode%2Fsmiley-input","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawebcode%2Fsmiley-input/lists"}