@s-ui/react-atom-panel
v1.20.0
Published
> Just a background for your component, can be a color or an image with background/overlay
Downloads
3,290
Maintainers
Keywords
Readme
AtomPanel
Just a background for your component, can be a color or an image with background/overlay
Installation
$ npm install @s-ui/react-atom-panel --save
Usage
Basic usage
import AtomPanel, {
atomPanelAlpha,
atomPanelColors,
atomPanelHorizontalAlign,
atomPanelVerticalAlign
} from '@s-ui/react-atom-panel'
return (
<div>
<AtomPanel
alpha={atomPanelAlpha.OVERLAY_D4}
color={atomPanelColors.CONTRAST}
>
{content}
</AtomPanel>
<AtomPanel
src={'https://picsum.photos/250/200'}
horizontalAlign={atomPanelHorizontalAlign.LEFT}
verticalAlign={atomPanelVerticalAlign.TOP}
>
{content}
</AtomPanel>
</div>
)
Find full description and more examples in the demo page.