JSPM

@dasa-health/alma-react

1.2.1
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 113
    • Score
      100M100P100Q112005F
    • License ISC

    ⚛️ Alma Design System - React Components

    Package Exports

    • @dasa-health/alma-react
    • @dasa-health/alma-react/build/index.esm.js
    • @dasa-health/alma-react/build/index.js
    • @dasa-health/alma-react/build/index.umd.js

    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.