0.1.1 • Published 11 months ago
@kwolfsanta/amtd v0.1.1
Introduction
My personal ant-design. This is only used for practice.
You can check the docs here
Tech Stack
- React
- Vite
- Typescript
- Vitest - A Blazing Fast Unit Test Framework
- React Testing Library - Test UI Components In a User-centric Way
- Unocss - The instant on-demand atomic CSS engine.
- Husky
Install
pnpm install @kwolfsanta/amtd
Usage
import React, { useState } from 'react'
import { Button } from '@kwolfsanta/amtd'
import '@kwolfsanta/amtd/dist/es/style.css'
const HelloWorld = () => {
const [count, setCount] = useState(0)
const handleClick = () => {
setCount(count + 1)
}
return (
<div>
<Button btnType="primary" onClick={handleClick}>Current count: {count}</Button>
</div>
)
}