0.1.2 • Published 4 years ago

pterrific-ui v0.1.2

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

pterrific-ui

A simply pterrific component library for React Native.

NOTE: This library is HIGHLY work in progress. Breaking changes will be frequent and expected, so bear that in mind when using it.

Installation

npm install pterrific-ui

Usage

Button

import { Button, Colors } from "pterrific-ui";

// ...

const onPress = () => console.log("Button pressed"

<Button
    onPress={onPress)             // () => void
    variantColor={Colors.Blue}    // Color
    variantColorWeight='400'      // ColorIndex
    size='md'                     // "sm" | "md" | "lg"    
    isLoading={false}             // boolean
    isDisabled={false}            // boolean
>
    Press Me
</Button>

Radio

import { Radio, RadioGroup, Colors } from "pterrific-ui";

// ...

<RadioGroup
    style={style}               // "card" | "minimal"
    iconStyle={iconStyle}       // "check" | "circle"
    type={type}                 // "radio" | "select"
    inline={inline}             // boolean
    value={value}               // string | number | boolean
    onChange={onChange}         // (values: string | number | boolean) => void
    variantColor={Colors.Blue}  // Color
>
    <Radio>A</Radio>
    <Radio>B</Radio>
    <Radio>C</Radio>
    <Radio>D</Radio>
</RadioGroup>

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.6

4 years ago

0.0.5

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