2.0.1 • Published 2 years ago

r3d5 v2.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

r3d5 - Components

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev

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

Major and Minor Components for UI and Layout and others

It will be updated regularly

RxBtn Component

A custom button component with optional color, font type, and size props.

Usage

Copy code
import RxBtn from './path/to/RxBtn';

// ...

<RxBtn color="red-500" fontType="font-bold" size="py-3 px-6">
  Click me
</RxBtn>

Props

NameTypeDefaultRequiredDescription
colorstringblue-500NoThe background color of the button.
fontTypestringfont-mediumNoThe font type of the button.
sizestringpy-2 px-4NoThe size of the button.
childrenReact.ReactNode-YesThe content of the button.
propsReact.ButtonHTMLAttributes-NoAdditional button props.

Example

import RxBtn from './path/to/RxBtn';

// ...

<RxBtn>Click me</RxBtn>;
import RxBtn from './path/to/RxBtn';

// ...

<RxBtn
	color='red-500'
	fontType='font-bold'
	size='py-3 px-6'
>
	Click me
</RxBtn>;
2.0.1

2 years ago

2.0.0

2 years ago

0.1.2

2 years ago

0.4.0

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago