1.0.4 • Published 6 years ago

@mandala-ui/button v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

Mandala UI Button

Mandala is a React component library that utilizes a declarative CSS.

Installation

Check the Monorepo README for installation.

Usage

if using the whole library:

import { Button } from 'mandala';

if only using this component:

import Button from '@mandala-ui/button';

Props

  • children - Whatever node you would like in your button. Use this to add icons or customize text color inside.
  • color - color string for the background color of the button
  • disabled - disables clicking and reduces the opacity by 60%
  • onClick - click callback handler
  • pill - gives the button 100% radius
  • radius - border radius, from 0-4, will not work if pill is true
propNamepropTypedefaultValueisRequired
childrennodenull-
colorstringblack-
disabledbooleanfalse-
onClickfuncnull-
pillbooleanfalse-
radiusnumber0-

mandala-bottom

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.16

6 years ago

0.0.15

6 years ago

0.0.14

6 years ago