This project is a simple Angular application showcasing an input component using Storybook.
Ensure you have the following installed:
- Node.js (v16 or later recommended)
- Angular CLI
- Storybook
Clone the repository and install dependencies:
npm installTo start the Angular development server:
ng serveIf Storybook is not already installed, initialize it:
npx storybook@latest init --builder webpack5To run Storybook:
npm run storybookThe project includes a simple input component located in:
src/app/components/input/input.component.ts
<app-input label="Username" placeholder="Enter your username" type="text"></app-input>The input component is showcased in Storybook with customizable controls. You can find the story definition in:
src/stories/input.component.stories.ts
If you encounter any dependency issues, try:
rm -rf node_modules package-lock.json
npm install
npm run storybookEnsure your TypeScript version is up to date:
npm install typescript@latest --save-devThis project is licensed under the MIT License.