A comprehensive React component library initially designed for the Turkish e-Government Gateway internal projects. This library provides a collection of accessible, customizable, and production-ready UI components following Motif UI design system guidelines, created and maintained by TΓRKSAT's e-Government Application Development Department.
π Website π https://motif-ui.com
π Documentation π https://docs.motif-ui.com
- βοΈ Modern React components built with TypeScript
- π§© Fully typed with TypeScript definitions
- π¦ Supports both ESM and CommonJS module formats
- π¨ Themeable components powered by design tokens
- βΏ Accessible & WCAG-compliant (coming soon)
- π Comprehensive Storybook documentation
- π Production-ready and tested
npm i @motif-ui/react @fontsource/interNote
Motif UI React requires React 19.2.3 or higher. Make sure you have the matching packages installed:
import { MotifProvider } from "@motif-ui/react";
function App() {
return (
<MotifProvider>
{/* Your app content */}
</MotifProvider>
);
}// import { MotifProvider } from '@motif-ui/react';
import "@motif-ui/react/themes/default-theme.css";
/* function App() {
return (
<MotifProvider>
Your app content
</MotifProvider>
);
} */And that's it! π₯³
Now you can import and use components in your application:
import { Button } from "@motif-ui/react";
export const MyComponent = () => {
return (
<Button variant="primary">My Fancy Button</Button>
);
}This library is built on top of Next.js, which is used primarily to reduce boilerplate code rather than for its runtime features. This makes local development and component testing straightforward.
-
Clone the repository
-
Install dependencies:
npm install-
Develop and test your components
For quick component testing during development, you can use Next.js dev server directly or storybook locally :
npm run dev
npm run storybook- Build the library:
npm run build:libThis will generate ESM and CommonJS builds in the /dist folder.
We welcome contributions! Please see our Contributing Guidelines for details on:
- Branch naming conventions
- Commit message format
- Pull request process
- Code style guidelines
Thank you all β€οΈ We couldn't make this happen without you:
See LICENSE file for details.
For issues, questions, or contributions, please open an issue on our GitHub repository.