Diamond for Fender React UI Kit
Description
Renders a diamond atom.
Installation
yarn install @fenderdigital/react-diamond --save
Usage
import Diamond from '@fenderdigital/react-diamond';
Props
-
color
- bg color of the diamond -
children
- renders any children elements, if present -
dimensions
- dimensions added to the in-line style attribute -
opacity
- opacity level
propName | propType | defaultValue | isRequired |
---|---|---|---|
color | string | light-gray | - |
children | node | null | - |
dimensions | string | { width: '1rem', height: '1rem' } | - |
opacity | string | 100 | - |
Development
Check the Monorepo README for development documentation.