@dasa-health/alma-react
v2.1.9
Published
⚛️ Alma Design System - React Components
Downloads
853
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.