button-explore-tes
v1.0.3
Published
Komponen tombol yang dibuat dengan React dan Tailwind CSS.
Downloads
17
Readme
Button Explore Tes
Komponen tombol yang dibuat dengan React dan Tailwind CSS.
Instalasi
Untuk menginstal paket, jalankan perintah berikut:
npm button-explore-tes
Penggunaan
import { Button } from 'button-explore-tes/src';
export default function Home() {
return(
<>
<Button text='Hello World' />
</>
)
}
Prop Reference
| Prop | Tipe | Default | Deskripsi |
|-----------|---------------------------------------|-----------------|------------------------------------------------|
| size
| 'sm' \| 'md' \| 'lg' \| 'xl'
| 'sm'
| Ukuran tombol |
| shadow
| boolean
| true
| Menentukan apakah tombol memiliki bayangan |
| bgColor
| 'secondary' \| 'tertiary' \| 'plain'
| 'secondary'
| Warna latar belakang tombol |
| border
| boolean
| true
| Menentukan apakah tombol memiliki border |
| text
| string
| 'Check Domain'
| Teks yang akan ditampilkan di tombol |