@danske/sapphire-react
v4.2.0
Published
The React implementation of the Sapphire Design System from Danske Bank A/S
Downloads
339
Readme
@danske/sapphire-react
This is the implementation of Sapphire design system containing reusable react components.
List of Components
To view the list of available components you can npm run storybook
from this folder
Use a component
npm i @danske/sapphire-react
note: When using npm version less than 7 @danske/sapphire-icons
is required to be
installed manually in order to use Icon component and other Components which
uses Icon internally.
After this you can import component and start using it.
import { Button } from '@danske/sapphire-react';
const MyApp = () => {
return (
<Button variant="primary" onPress={() => console.log('Click!')}>
My Button
</Button>
);
};
You will find more example in storybook documentation