@fenderdigital/react-diamond
v2.0.0
Published
Fender React UI Kit Diamond Component
Downloads
1
Keywords
Readme
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 diamondchildren
- renders any children elements, if presentdimensions
- dimensions added to the in-line style attributeopacity
- 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.