1.0.24 • Published 1 year ago

transfero-components v1.0.24

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

🧩 React - Transfero Components

TypeScript React ESLint Yarn

Prerequisites

This project requires NodeJS (version 8 or later) and NPM. Node and NPM are really easy to install. To make sure you have them available on your machine, try running the following command.

$ npm -v && node -v
6.4.1
v8.16.0

Required libs

All libraries are installed automatically. No commands are needed.

Material UI @emotion/react, @emotion/styled, @mui/material Homepage Luxon Homepage Icomoon react-icomoon Homepage Victory Homepage

Table of contents

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Installation

BEFORE YOU INSTALL: please read the prerequisites

To install and set up the library, run:

$ npm install transfero-components --save

Or if you prefer using Yarn:

$ yarn add transfero-components

Usage

Example

import { Loader } from 'transfero-components';

const App = () => {
  return (
    <div>
      <Loader />
    </div>
  );
};

Button

import { Button } from 'transfero-components';

const App = () => {
  return (
    <div>
      <Button onClick={() => alert("I'm a button")}>Click me</Button>
    </div>
  );
};

Button Props

NameTypeDefaultDescription
onClick*functionAction when user click.
childrennodeThe content of the component.
sizesm | md | lgmdThe size of the component.
iconIconTypesInsert an icon on button. Check available icons.
iconsizesm | md | lg16The icon size of the component. Only available with icon property.
outlineboolfalseIf true, the component is styled outline.
disabledboolfalseIf true, the component is disabled.
themedark | lightlightThe theme of the component. Use dark for dark screens ans light for light screens
linkboolfalseIf true, the component is formatted as link.
circleboolfalseIf true, the component is formatted as a circle. Only available with icon property without children property.
styleCSSPropertiesThe system prop that allows defining system overrides as well as additional CSS styles. See the sx page for more details.
iconColorstringThe color of the icon. Only available with icon property.
textColorstringOverride the text color of the component.
classNamestringOverride or extend the styles applied to the component.

* Required

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Add your changes: git add .
  4. Commit your changes: git commit -am 'Add some feature'
  5. Push to the branch: git push origin my-new-feature
  6. Submit a pull request :sunglasses:

Authors

1.0.24

1 year ago

1.0.23

1 year ago

1.0.22

1 year ago

1.0.21

1 year ago

1.0.20

1 year ago

1.0.19

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago