0.0.7 • Published 4 years ago

camille v0.0.7

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

Camille

Camille is a minimalistic UI library for ReactJS.

Installation

$  yarn add camille
// Or NPM
$  npm install camille

Example Usage

In this example, we use the Button component in order to easily render a simple, stylish and fully customizable button:

import React from 'react';
import { Button } from 'camille';

export default ({ handleClick }) => {
    return (
        <div>
            <Button size="large" color="green" onClick={handleClick}>
              Checkout
            </Button>
        </div>
    );
};

Components

Button

A Button is a UI element that provides the user a way to trigger an event.

Props

NameDefaultTypeDescription
sizenormalstringDetermines the width, height and font size of the button.Enumsmini small normal large massive
disabledfalseboolFades the button and makes it uninteractable.
compactfalseboolGreatly reduces padding of the button.
colordefaultenumDetermines the color of the button.Enumsdefault red orange yellow olive green teal blue violet purple pink brown grey black
invertedfalseboolSwaps the background and font color.

Avatar

An avatar is an image or profile graphic that typically appears next to a user's name.

Props

NameDefaultTypeDescription
srcstringSource image.
size40pxstringDetermines the width and height of the image.
radius100pxstringDetermines how rounded the corners of the avatar are.
statusofflineenumDetermines the icon next to the Avatar image.Status can have a value of online, offline or away.Enumsonline offline away
0.0.7

4 years ago

0.0.5

4 years ago

0.0.6

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago