JSPM

@dasa-health/alma-react

2.0.0-beta.495+9f1b6968c
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 132
    • Score
      100M100P100Q108248F
    • License ISC

    ⚛️ Alma Design System - React Components

    Package Exports

      This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@dasa-health/alma-react) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

      Readme

      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.