@q1k-oss/kiban
v1.0.0
Published
Kiban (基盤) - A React UI Component Library
Readme
Description
Kiban (基盤) means "foundation," "base," or "infrastructure" in Japanese. It is a React component library designed to provide a solid foundation of reusable and customizable UI components. Built on top of Radix UI primitives and styled with Tailwind CSS.
Installation
npm install @q1k-oss/kibanUsage
import * as React from "react";
import { Tabs, TabsList, TabsTrigger, TabsContent } from "@q1k-oss/kiban";
const MyComponent = () => (
<Tabs defaultValue="preview">
<TabsList>
<TabsTrigger value="preview">Preview</TabsTrigger>
<TabsTrigger value="code">Code</TabsTrigger>
</TabsList>
<TabsContent value="preview">Preview Content</TabsContent>
<TabsContent value="code">Code Content</TabsContent>
</Tabs>
);
export default MyComponent;Styles
Import the stylesheet in your main styles file or App.ts:
@import "@q1k-oss/kiban/styles/kiban.css";
@source '../node_modules/@q1k-oss/kiban';Development
# Start the documentation site
npm run www:dev
# Build the component library
npm run build:package
# Build the documentation site
npm run www:buildContributing
Contributions are welcome! Please follow these steps:
- Fork the repository
- Clone your fork:
git clone https://github.com/q1k-oss/kiban.git - Create a feature branch:
git checkout -b my-feature - Install dependencies:
npm install - Make your changes and commit:
git commit -m "feat: add new feature" - Push and open a pull request
License
This project is licensed under the MIT License.
