strivui
Version:
**StrivUI** is a modern, utility-first UI component library designed for building fast, beautiful, and accessible interfaces in **React** using both **TypeScript** and **JavaScript**.
155 lines (103 loc) β’ 3.71 kB
Markdown
<p align="center">
<img src="https://res-console.cloudinary.com/dpbwcdytl/thumbnails/v1/image/upload/v1753722770/c3RyaXZ1aV9sb2dvX2syZHhicQ==/drilldown" width="250" alt="StrivUI Logo" />
</p>
**πStrivUI** is a hybrid, utility-first UI component library built for **React**, designed to feel instantly familiar to both **React Native** and **Web developers**. It follows a **class-based styling approach** and is written in **TypeScript**, delivering a seamless and consistent design system for modern applications.
Every component in StrivUI comes with **thoughtfully crafted default styles**, allowing you to build polished interfaces out of the box β while still offering full flexibility for customization.
> Developed with β€οΈ by [Syed Abdullah Ali](https://github.com/syedabdullahali)
## β¨ Why StrivUI?
* β‘ **Utility-first styling** using a class-based approach
* π± **React Native-style components** like `<View />`, `<Text />`, and `<FlatList />`
* π **Web-native components** like `<Header />`, `<Section />`, and `<Card />`
* π§© Shared UI building blocks for fast development
* π οΈ Built with TypeScript β safe and scalable
* π» Lightweight and blazing fast
## π¦ Installation
Install with npm or yarn:
```bash
npm install strivui
# or
comingSoon-> yarn add strivui
```
## π§ Usage
### JavaScript
```jsx
import { Button } from 'strivui';
function App() {
return <Button className="bg-blue-500 text-white px-4 py-2 rounded hover:bg-blue-400">Click Me</Button>;
}
```
### TypeScript
```tsx
import { Button } from 'strivui';
const App: React.FC = () => {
return <Button className="bg-blue-500 text-white px-4 py-2 rounded hover:bg-blue-400">Click Me</Button>;
};
```
## π§± Component Categories
### π£ React NativeβInspired Components
Familiar primitives brought to the web:
* `<View />`
* `<Text />`
* `<ScrollView />`
* `<Pressable />`
* `<TouchableOpacity />`
* `<FlatList />`
* `<SectionList />`
* `<Image />`
* `<ImageBackground />`
* `<ActivityIndicator />`
### π΅ Web Layout Components
Semantic elements for responsive structure:
* `<Header />`
* `<Footer />`
* `<Main />`
* `<Section />`
* `<Navigation />`
* `<Container />`
* `<Card />`
### π’ Shared UI Components
Reusable components for forms, modals, tables, etc.:
* `<Button />`
* `<Input />`
* `<TextArea />`
* `<Select />`
* `<Link />`
* `<Modal />`
* `<Dialog />`
* `<Overlay />`
* `<Table />`, `<TableHead />`, `<TableBody />`, `<TableRow />`, `<TableHeaderCell />`, `<TableDataCell />`
## π¨ Styling & Theming
StrivUI uses a **utility-first, class-based styling approach**. You can customize components using `className` with your own styles or design system.
> Coming soon: `strive.config.js` for overriding design tokens like colors, spacing, font scale, and variants.
## π Documentation
Full documentation and interactive previews will be available at:
π [https://css\_striv\_ui.com](https://css_striv_ui.com)
## π§ͺ Local Development
To run the library locally:
```bash
git clone https://github.com/syedabdullahali/StrivUI.git
cd StrivUI
npm install
npm run dev
```
## π€ Contributing
We love contributions!
1. Fork the repo
2. Create your feature branch: `git checkout -b feature/my-component`
3. Commit your changes: `git commit -m 'Add my component'`
4. Push to GitHub: `git push origin feature/my-component`
5. Open a Pull Request π
## π License
MIT Β© 2025 [Syed Abdullah Ali](https://github.com/syedabdullahali)