1.0.3 β€’ Published 2 years ago

help-ukraine v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Help Ukraine πŸ‡ΊπŸ‡¦

Stand with Ukraine and share the latest news, resources, and charitable information with this customizable badge.

image image image

Getting Started:

  1. Install the help-ukraine package from your terminal via npm or Yarn.
npm install help-ukraine
yarn add help-ukraine
  1. Import the package and place the component in the desired file. For example:
import React from 'react';
import { HelpUkraine } from 'help-ukraine';

function App() {
  return (
    <div>
      <HelpUkraine />
    </div>
  );
}
  1. Customize the link, text, and/ or styles to your liking using props. See table below for more info.
<HelpUkraine
  link="https://ukrainewar.carrd.co/"
  text="Stand With Ukraine!"
  size={16}
  color="#FFF"
  bg="#000"
  pos="top right"
  pX={32}
  pY={8}
  mX={8}
  mY={8}
  radius={12}
/>

Available Options:

PropTypeDefaultDescription
linkstringUN Crisis ReliefWhere the component links to. See the "Verified Resources" section for more organizations that could use your support.
textstring'Help Ukraine'The text diplayed in the component.
sizenumber14The size of the text displayed in the component (in pixels).
colorstring'NavyBlue'The color of the text displayed in the component.
bgstring'Gold'The background color of the component.
posstring literal'bottom right'The position of the component. Must be one of the following: 'bottom right', 'bottom left', 'top right', or 'top left'.
pXnumber16The horizonal padding of the component (in pixels).
pYnumber4The vertical padding of the component (in pixels).
mXnumber16The horizonal margin/ space outside the component (in pixels).
mYnumber16The vertical margin/ space outsde the component (in pixels).
radiusnumber4The border radius/ roundness of the component (in pixels).

Contributions:

I appreciate your interest in this project and welcome you to contribute to it. For more details, please see the CONTRIBUTING.md file.


License:

Licensed under MIT. For more information, please see the LICENSE.md file.


Verified Resources:

Here are some additional resources and organizations that could use your support during this time.