1.0.4 • Published 5 years ago

gleam-ui-react v1.0.4

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

gleam-ui-react

npm package

Lightweight UI kit that will make your app sparkle!

Installation

npm i gleam-ui-react

Docs

Visit the Gleam UI React docs for information about Gleam UI components and how to use them.

Example Usage

Button

Props

NameProp TypeDefaultDescription
handleClickfunctionnullcallback for action
labelstringnulltext to display
colorenum - color listdefault
sizeenum - small / medium / largemediumsize of the button
disabledboolfalsedisables the button
classNamestring''additional classNames for the button
childrennodenullchildren to be rendered inside button
variantenum -nullchildren to be rendered inside button

examples:

  import React from 'react'
  import { Button } from 'gleam-ui-react'

  const SomeComponent = () => {
    const handleClick = () => {
      // action here
    }

    return (
      <Button handleClick={handleClick} label='Click Me' color='default' size='medium' />
    )
  }