MCPcopy Index your code
hub / github.com/enochndika/kimia-UI

github.com/enochndika/kimia-UI @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
282 symbols 497 edges 139 files 0 documented · 0% updated 4y ago★ 3402 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

UI Components for React built with Tailwind CSS 3

Kimia-UI

Why this approach?

Tailwind CSS is a utility-first CSS framework for rapidly building custom user interfaces. Il allows you writing your style without leaving your HTML.

The biggest disadvantage of Tailwind CSS is the risk of having too long classes that will make our code not readable enough.

As React is component-based, we can extract component logic with its classes and reuse them elsewhere which will result in more readable code with more components and fewer classes.

That's why I have created this collection of UI components fully customizable. Just copy and paste a component you want to use

All the components are in the packages directory.

Each component contains 2 sub-directories * examples : contains examples for each variant of the component in TypeScript

  • snippets : contains examples for each variant of the component in plain React

📋 Add a new component

To add a new component :

Create your new directory in src/packages/{yourComponentName} Inside your folder, you will create 2 subfolders and one file

  • examples : will contains examples for your component in TypeScript**
  • snippets : Will contains examples in plain React and will be used as code snippet to copy
  • {your component name}.tsx will contains the logic of your components

Create your new file(route) in src/pages/components/{your component name}. Then you will import all the examples and snippets for your component

Browser Support

These components are compatible with all browsers

Chrome Firefox Edge Safari Opera

Contribution

If you would like to contribute on the project, fixing bugs, improve accessibility or open an issue, please follow our Contribution guide

First, run the development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

Extension points exported contracts — how you extend this code

Props (Interface)
(no doc)
src/packages/list-group/listGroup.tsx
ContextProps (Interface)
(no doc)
src/website/layout/helpers/context.tsx
Props (Interface)
(no doc)
src/packages/tooltip/tooltip.tsx
Props (Interface)
(no doc)
src/website/layout/topnavigation/index.tsx
Props (Interface)
(no doc)
src/packages/ecommerce/pricing-table/pricingTable.tsx
NavbarNavProps (Interface)
(no doc)
src/website/layout/topnavigation/index.tsx
PriceGroupProps (Interface)
(no doc)
src/packages/ecommerce/pricing-table/pricingTable.tsx
LinkPropsWithChildren (Interface)
(no doc)
src/website/layout/topnavigation/index.tsx

Core symbols most depended-on inside this repo

useToggle
called by 7
src/packages/navbar/navbar.tsx
useToggle
called by 6
src/packages/dropdown/dropdown.tsx
toggle
called by 4
src/packages/_utils/useToggle.tsx
useToggle
called by 3
src/website/layout/helpers/context.tsx
useAccordion
called by 2
src/packages/accordion/accordion.tsx
colors
called by 2
src/packages/button/button.tsx
closeSidenav
called by 2
src/website/layout/helpers/context.tsx
toggle
called by 1
src/packages/sidenav/examples/left.tsx

Shape

Function 221
Interface 58
Class 2
Method 1

Languages

TypeScript100%

Modules by API surface

src/packages/navbar/navbar.tsx15 symbols
src/website/layout/topnavigation/index.tsx12 symbols
src/packages/hamburger-menu/hamburgerMenu.tsx12 symbols
src/packages/dropdown/dropdown.tsx10 symbols
src/packages/accordion/accordion.tsx10 symbols
src/packages/modal/modal.tsx8 symbols
src/packages/drawer/drawer.tsx8 symbols
src/website/components/icons.tsx7 symbols
src/packages/tab/tab.tsx6 symbols
src/packages/sidenav/sidenav.tsx6 symbols
src/packages/ecommerce/pricing-table/pricingTable.tsx6 symbols
src/packages/curtain-menu/curtainMenu.tsx6 symbols

For agents

$ claude mcp add kimia-UI \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page