1.20.0 • Published 1 year ago

@s-ui/react-atom-panel v1.20.0

Weekly downloads
624
License
MIT
Repository
-
Last release
1 year ago

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.

1.19.0

1 year ago

1.20.0

1 year ago

1.18.0

1 year ago

1.17.0

1 year ago

1.15.0

2 years ago

1.16.0

2 years ago

1.14.0

2 years ago

1.13.0

2 years ago

1.12.0

2 years ago

1.11.0

3 years ago

1.10.0

3 years ago

1.9.0

3 years ago

1.8.0

4 years ago

1.7.0

4 years ago

1.6.0

4 years ago

1.5.0

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago