0.0.24 • Published 12 months ago

@wesbitty/ui v0.0.24

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

Wesbitty UI

Wesbitty UI is a React UI Component Library.

Roadmap

Elements

  • Button
  • Badge
  • Icon

Typography

  • Title
  • Text
  • Link

Feedback

  • Alert

Installation

npm install @wesbitty/ui

Usage

You can use any Icon from the library as a component by prepending Icon to any Icon name, like, <IconHome>

import { IconHome } from 'ui'
//...
return <IconHome size="small" />
  • Button To implement Button component into your project you'll need to add the import:
import { Button } from 'ui'

After adding import into your project you can use it simply like:

<Button type="primary">Button</Button>

Button Props

Table below contains all types of the props available in Button component.

NameTypeDefaultDescription
ariaControlsstringId of the element the button controls.
ariaExpandedbooleanTells screen reader the controlled element from ariaControls is expanded
asComponentstring \| React.Element"button"The component used for the root node.
fullWidthbooleanfalseIf true, the Button will grow up to the full width of its container.
iconRightReact.NodefalseThe displayed icon on the right.
iconLeftReact.NodeThe displayed icon on the left.

Feedback

We want to provide only components of the highest quality. We can’t do that without your feedback. If you have any suggestions about what we can do to improve components, please report it directly as an issue or write to us at #Wesbitty-UI on Slack.

Feel free to submit a question or idea here