@agderposten/logo

3.0.0 • Public • Published

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>
);

Readme

Keywords

none

Package Sidebar

Install

npm i @agderposten/logo

Weekly Downloads

2

Version

3.0.0

License

UNLICENSED

Unpacked Size

4.56 kB

Total Files

5

Last publish

Collaborators

  • thomaslindstr_m
  • gaute
  • frank.bjelland