0.0.29 • Published 6 years ago
@rapido/components v0.0.29
@rapido/components
This package includes a library of common primitive components used in Rapido apps.
Please refer to the Rapido documentation:
- Getting Started – How to create a new app.
- User Guide – How to develop apps bootstrapped with Rapido.
Installation
yarn add @rapido/componentsGetting 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
6 years ago
0.0.28
6 years ago
0.0.27
6 years ago
0.0.26
6 years ago
0.0.25
6 years ago
0.0.24
7 years ago
0.0.23
7 years ago
0.0.22
7 years ago
0.0.21
7 years ago
0.0.20
7 years ago
0.0.19
7 years ago
0.0.18
7 years ago
0.0.17
7 years ago
0.0.15
7 years ago
0.0.14
7 years ago
0.0.13
7 years ago
0.0.12
7 years ago
0.0.11
7 years ago
0.0.10
7 years ago
0.0.9
7 years ago
0.0.8
7 years ago
0.0.7
7 years ago
0.0.6
7 years ago
0.0.5
7 years ago
0.0.4
7 years ago
0.0.3
7 years ago
0.0.2
7 years ago
0.0.1
7 years ago