3.0.0 • Published 3 years ago

@agderposten/logo v3.0.0

Weekly downloads
-
License
UNLICENSED
Repository
github
Last release
3 years ago

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

3 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.3.1

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago