Here's the quickest way to get started with Aski.
You need to have TailwindCSS installed in your project. Follow the official documentation to get started.
Be sure to install the
@tailwindcss/forms
plugin as well.
npx @askides/cli init
This will install the CLI and create a new .askides.json
file in your project root next to your package.json
file.
npx @askides/cli add elements <element-name>
This command will add the desired element to your project and install the necessary dependencies for it.
Add the following to your tsconfig.json
file:
{
"compilerOptions": {
"baseUrl": "./",
"paths": {
"~elements/*": ["src/elements/*"],
"~chunks/*": ["src/chunks/*"]
}
}
}
This will allow you to import the elements using the ~elements
and ~chunks
paths.
The element list is still in development, but a few elements are already available.
- Shell
- Navbar
- Sidebar
- Pattern
- Page
- Button
- Input
- Card
- Table
- Label
- Avatar
- Badge
You can see all the available Elements in the Storybook.
There's also a special section called Examples
, where you can find UIs built using the Elements. You can install them as well using the CLI:
npx @askides/cli add examples <example-name>
I've been using Shadcn's UI for a while now, and I love the simplicity and ease of use it provides.
This is my attempt to create a similar collection of components as a learning experience and with some personal touch.
Right now, Aski is in its early stages, and I'm still figuring out how to structure the components and the CLI. If you have any suggestions or want to contribute, feel free to open an issue or a PR.