{"id":30207704,"url":"https://github.com/minagishl/preline-react-demo","last_synced_at":"2026-06-20T12:32:51.913Z","repository":{"id":298692195,"uuid":"1000781823","full_name":"minagishl/preline-react-demo","owner":"minagishl","description":"A demo app using preline-react","archived":false,"fork":false,"pushed_at":"2025-06-12T11:27:41.000Z","size":45,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-08T22:44:52.810Z","etag":null,"topics":["preline","tailwindcss","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/preline-react","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/minagishl.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,"zenodo":null},"funding":{"custom":"https://minagishl.com/amazon-wishlist"}},"created_at":"2025-06-12T10:06:29.000Z","updated_at":"2025-06-12T11:27:45.000Z","dependencies_parsed_at":"2025-06-12T11:42:15.294Z","dependency_job_id":"e302c223-04ce-412a-8ec4-e00a88fa12aa","html_url":"https://github.com/minagishl/preline-react-demo","commit_stats":null,"previous_names":["minagishl/preline-react-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/minagishl/preline-react-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minagishl%2Fpreline-react-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minagishl%2Fpreline-react-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minagishl%2Fpreline-react-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minagishl%2Fpreline-react-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/minagishl","download_url":"https://codeload.github.com/minagishl/preline-react-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minagishl%2Fpreline-react-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34570535,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-20T02:00:06.407Z","response_time":98,"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":["preline","tailwindcss","typescript"],"created_at":"2025-08-13T16:19:01.934Z","updated_at":"2026-06-20T12:32:51.908Z","avatar_url":"https://github.com/minagishl.png","language":"TypeScript","funding_links":["https://minagishl.com/amazon-wishlist"],"categories":[],"sub_categories":[],"readme":"# Preline React Demo\n\nA simple demonstration application showcasing the [preline-react](https://github.com/minagishl/preline-react) component library.\n\nThis demo provides a minimal example of how to integrate and use Preline React components in a React application built with Vite and Tailwind CSS.\n\n## Live Demo\n\nYou can see this demo in action at [demo site](https://preline-react-demo.pages.dev) or by running it locally (see [Getting Started](#getting-started) below).\n\n## What's Included\n\nThis demo showcases:\n\n- Basic setup of `preline-react` with Vite\n- Integration with Tailwind CSS v4\n- Example usage of Preline React components (Button)\n- Proper provider configuration\n- TypeScript support\n\n## Tech Stack\n\n- **React 19** - UI framework\n- **Vite** - Build tool and dev server\n- **TypeScript** - Type safety\n- **Tailwind CSS v4** - Styling framework\n- **Preline React** - Component library\n\n## Getting Started\n\n### Prerequisites\n\n- Node.js (v20 or higher)\n- pnpm (recommended)\n\n### Installation\n\n1. Clone this repository:\n\n```bash\ngit clone https://github.com/minagishl/preline-react-demo.git\ncd preline-react-demo\n```\n\n2. Install dependencies:\n\n```bash\npnpm install\n```\n\n3. Start the development server:\n\n```bash\npnpm dev\n```\n\n4. Open your browser and navigate to `http://localhost:5173`\n\n## Project Structure\n\n```\nsrc/\n├── App.tsx          # Main demo component\n├── main.tsx         # Entry point with PrelineProvider setup\n├── index.css        # Tailwind CSS imports\n└── vite-env.d.ts    # Vite type definitions\n```\n\n## Key Implementation Details\n\n### Provider Setup\n\nThe demo shows how to properly wrap your application with `PrelineProvider`:\n\n```tsx\nimport { PrelineProvider } from 'preline-react';\n\ncreateRoot(document.getElementById('root')!).render(\n  \u003cStrictMode\u003e\n    \u003cPrelineProvider\u003e\n      \u003cApp /\u003e\n    \u003c/PrelineProvider\u003e\n  \u003c/StrictMode\u003e\n);\n```\n\n### Component Usage\n\nExample of using Preline React components:\n\n```tsx\nimport { useState } from 'react';\nimport { Button } from 'preline-react';\n\nexport default function App() {\n  const [count, setCount] = useState(0);\n\n  return (\n    \u003cdiv className=\"p-6 text-center\"\u003e\n      \u003ch1 className=\"mb-4 text-2xl font-bold\"\u003eCount: {count}\u003c/h1\u003e\n\n      \u003cButton variant=\"solid\" color=\"blue\" onClick={() =\u003e setCount(count + 1)}\u003e\n        Click\n      \u003c/Button\u003e\n    \u003c/div\u003e\n  );\n}\n```\n\n### Tailwind CSS Configuration\n\nThe demo uses Tailwind CSS v4 with the Vite plugin for optimal integration:\n\n```ts\n// vite.config.ts\nimport tailwindcss from '@tailwindcss/vite';\n\nexport default defineConfig({\n  plugins: [react(), tailwindcss()],\n});\n```\n\n## Learn More\n\n- **Preline React Documentation**: [Storybook](https://minagishl.github.io/preline-react/)\n- **Preline React Repository**: [GitHub](https://github.com/minagishl/preline-react)\n- **Preline UI**: [Official Website](https://preline.co/)\n\n## Available Scripts\n\n- `pnpm dev` - Start development server\n- `pnpm build` - Build for production\n- `pnpm preview` - Preview production build\n- `pnpm lint` - Run ESLint\n\n## Contributing\n\nThis is a demo repository. For contributions to the main library, please visit the [preline-react repository](https://github.com/minagishl/preline-react).\n\n## License\n\nMIT License - See [LICENSE](LICENSE) file for details.\n\n## Related Projects\n\n- [preline-react](https://github.com/minagishl/preline-react) - The main component library\n- [Preline UI](https://preline.co/) - The original UI framework\n- [Tailwind CSS](https://tailwindcss.com/) - CSS framework\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminagishl%2Fpreline-react-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fminagishl%2Fpreline-react-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminagishl%2Fpreline-react-demo/lists"}