@microapp-io/ui
v1.0.11
Published
  [ {
return (
<div className="flex justify-center items-center h-screen">
<Button>Click me!</Button>
</div>
);
}
export default App;Storybook
How to create new components?
We are using shadcn/ui for building our components. If you've never used shadcn/ui, please check their docs.
Example of installing Alert component
npx shadcn@latest add alertThis will generate generate the component under /components/ui.
Export the created component in our src/index.ts file.
import "./index.css";
export * from "@/components/ui/button";
export * from "@/components/ui/alert";Create stories (Storybook)
We are using Storybook, so please don't forget about creating stories for your new component. You can see the /components/ui/button.stories.tsx as an example.
License
This project is licensed under the MIT License.
