Easy installation.
Quickly setup ...
Install the parts that your project requires:
pnpm add kiso-core
STEP 01Configure TailwindCSS
Update your globals.css and tailwind.config.ts.
STEP 02Use in your project.
Take advantage of tree splitting to minimise the Javascript sent to the end-user.
import { Button } from "kiso-core/button" const AddToCartButton = () => { return ( <div> <Button>Add to cart</Button> </div> ); };
STEP 03Extend components.
Take advantage of tree splitting to minimise the Javascript sent to the end-user.
import { Avatar, AvatarFallback, AvatarImage } from "kiso-core/avatar"; import { motion } from "framer-motion"; const MotionAvatar = motion(Avatar);
BDSTEP 04Style components.
Add custom styling to components with TailwindCSS.
import { Button } from "kiso-core/button" const AddToCartButton = () => { return ( <div> <Button className=”hover:scale-150”>Add to cart</Button> </div> ); };
STEP 05
What's next?
Continually improving with new components, utilities, animations, etc... As the frontend landscape changes Kiso will also update to continue to work with the latest tools.
Next.JS & React Server Components
Currently Kiso's components ship with the “use client” directive for components which require the client-side.
Depending on your implementation of some components you may to add these directives to your code locally.
User's who aren't using server components need not worry and can use the components as-is without removing “use client”.