Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ebi-gene-expression-group/atlas-information-banner

Package Overview
Dependencies
Maintainers
4
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ebi-gene-expression-group/atlas-information-banner

Dismissable information banner for Expression Atlas web site

  • 2.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

Expression Atlas Information Banner

A React component that renders a message in Markdown, which can be dismissed by clicking a close button.

Usage

import AtlasInformationBanner from '@ebi-gene-expression/atlas-information-banner'

const loremIpsum = `
# Lorem ipsum

*Lorem ipsum dolor sit amet*, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
 
Ut enim ad minim veniam, --quis nostrud exercitation-- ullamco laboris nisi ut aliquip ex ea commodo consequat.

<a href="https://en.wikipedia.org/wiki/Lorem_ipsum">More about Lorem Ipsum</a> 
`

ReactDOM.render(
  <AtlasInformationBanner
    motd={loremIpsum} />,
  target)

Props

NameTypeDefault value
motdstring''

The component supports GitHub Flavoured Markdown as well as raw HTML tags. If the motd prop is not a string or is empty, nothing is rendered.

Look And Feel

For a correct presentational and functional behaviour the EBI Visual Framework must be loaded in the document. See html/index.html for a fully working example and a real use case. The current version has only been tested with v1.3 but other minor versions should work as well. In particular it uses the Foundation Close Button.

Other than removing the bottom margin from the callout, all other layout options are left to the client.

FAQs

Package last updated on 16 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc