Install through npm:
npm install @brewerwall/logo
Use is pretty straight forward.
import React, { Component } from "react";
import Logo from "@brewerwall/logo";
class Home extends Component
{
render()
{
return (
<Logo size="hero" showTitle={true} />
);
}
}
There are 4 additional props:
- type
- textColor
- size
- showTitle
This will render different SVG types of the logo.
Options: light_color
, light_transparent
, light_solid
, dark_color
, dark_transparent
, dark_solid
Default: dark_color
<Logo type="light_color" />
This will set the color of the title text.
Options: Any CSS valid color.
Default: black
<Logo textColor="white" />
This will render the entire logo and text proportionally to preset sizes.
Options: extra-small
, small
, medium
, large
, extra-large
, hero
Default: small
<Logo size="hero" />
This will toggle the visibilty of the title in the logo.
<Logo showTitle={true} />