@mailstep-design-system/utils
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

Utils

Useful tools and universal components for versatile use.

CreateRgba

You can use this tool for create a rgba color from hexa color (#FFFFFF) or from default theme named color (like success, danger, red2...)

import { createRgba } from '@mailstep-design-system/utils'

const StyledLink = styled.div<{color: string}>`
  color: ${({ color }): string => createRgba(color, 0.7)};
`

KeyPress

import { KeyPress } from '@mailstep-design-system/utils'

<div>
    <KeyPress action={() => alert('You click ESC')} keyCode={27} />
    Press ESC
</div>

Readme

Keywords

none

Package Sidebar

Install

npm i @mailstep-design-system/utils

Weekly Downloads

1

Version

0.0.3

License

ISC

Unpacked Size

1.33 MB

Total Files

264

Last publish

Collaborators

  • michalkerechanyn
  • jan.jarcik.mailship