@dasa-health/alma-react
TypeScript icon, indicating that this package has built-in type declarations

2.1.9 • Public • Published

Alma DS React Components

Alma React is the official React lib composed with Emotion from Dasa. Acess here all documentation.

Introduction

Here you will see all the points to start your application, customize it and understand its main features.

Installation

Use the terminal to install AlmaReact in your project.

yarn add @dasa-health/alma-react

Usage

Installing the theme provider in your application. It already contains GlobalStyle, theme and system settings

import { ThemeProvider } from '@dasa-health/alma-react'

export const App = () => (
    <ThemeProvider>
      <App />
    </ThemeProvider>
)

With the configuration applied, you can use a component in your application, at all levels below ThemeProvider

import { Button, Flex } from '@dasa-health/alma-react'

export const Sidebar = (props) => (
    <Flex width={48} height="100vh" {...props}>
      <Button variant="tertiary">Open Sidebar</Button>
    </Flex>
)

See the components in our storybook

See all components in our Storybook.

Package Sidebar

Install

npm i @dasa-health/alma-react

Weekly Downloads

160

Version

2.1.9

License

ISC

Unpacked Size

6.55 MB

Total Files

9

Last publish

Collaborators

  • felipe.silva.devtech
  • nav.mobile
  • lucasrusso95
  • allan.pinheiro
  • marcoaure