0.0.29 • Published 4 years ago

@rapido/components v0.0.29

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

@rapido/components

This package includes a library of common primitive components used in Rapido apps.

Please refer to the Rapido documentation:

Installation

yarn add @rapido/components

Getting Started

import React from 'react';
import { Box, Heading, Button } from '@rapido/components';

export default props => (
  <Box>
    <Heading>Hello</Heading>
    <Button>Rapido</Button>
  </Box>
);

API

This package includes the following availble components:

  • Box - Responsive box-model layout component
  • Text - Responsive typography component
  • Button - Button component with variants
  • Image - Responsive image component with variants

Box

For full usage guide see the documentation.

<Box p={5} fontSize={4} color="white" bg="primary">
  <Text>Box</Text>
</Box>

Text

For full usage guide see the documentation.

<Text fontWeight="bold" color="primary">
  Text
</Text>

Button

For full usage guide see the documentation.

<Box>
  <Button variant="primary" mr={2}>
    Primary
  </Button>
  <Button variant="secondary" mr={2}>
    Secondary
  </Button>
  <Button variant="outline" mr={2}>
    Outline
  </Button>
</Box>

Image

For full usage guide see the documentation.

<Image width={100} height={100} src={props.image} />
0.0.29

4 years ago

0.0.28

4 years ago

0.0.27

4 years ago

0.0.26

4 years ago

0.0.25

4 years ago

0.0.24

5 years ago

0.0.23

5 years ago

0.0.22

5 years ago

0.0.21

5 years ago

0.0.20

5 years ago

0.0.19

5 years ago

0.0.18

5 years ago

0.0.17

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago