@agderposten/logo
v3.0.0
Published
Component with black or white logo for the provided `organization` with an `alt` attribute set as the `organization.name`. Attempts to use `Next.js` `getInitialProps`.
Downloads
18
Readme
Logo
Component with black or white logo for the provided organization
with an alt
attribute set as the organization.name
. Attempts to use Next.js
getInitialProps
.
Installation
npm install @agderposten/logo
Usage
import React, {Fragment} from 'react';
import Logo, {stylesheet} from '@agderposten/logo';
export default () => (
<Fragment>
<Logo {...{organization}} />
<Logo {...{organization}} white />
<Logo {...{organization}} black />
<Logo {...{organization}} className="my-class" />
<Logo {...{organization}} width="30" />
<Logo {...{organization}} height="20" />
<style dangerouslySetInnerHTML={{__html: stylesheet}} />
</Fragment>
);