1.0.14 • Published 1 year ago

@edvnz/components v1.0.14

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

EDVNZ Components

Edvnz components for rendering cross-platform applications Design-system based Edvnz components cover all essential use cases.

Installation

$ npm install @edvnz/components
# or
$ yarn add @edvnz/components

Features

Button

Button make basic actions more accessible and enable users to perform activities more effectively. Buttons utilize labels,size and in some cases, icons to describe the action that will take place when the user pocesses them.

Props

Prop nameTypeDescription
appearancefilled outlined textAppearance of the component. Can be filled, outline or text. Defaults to filled.
statusactive inactiveStatus of the component. Can be active or inactive. Defaults to active.
iconLeftelementIcon to appear on the left side of the button
iconRightelementIcon to appear on the right side of the button
labelstringLabel text to be displayed inside the button
onPressfuncFunction for onPress
sizelarge medium smallSize of the button
styleobjectStyle for the button
textStyleobjectStyle for the button
textVariantstringtextVariant for the text/label inside the button

Example

import React from "react";
import { Button } from '@edvnz/components`

const Example = () => {
  return (
    <Button label="Sign In" size="large" style={{ width: "200px" }} />
  )
}