🚨 Shai-Hulud Strikes Again:More than 500 packages and 700+ versions compromised.Technical Analysis
Socket
Book a DemoInstallSign in
Socket

@crave/farmblocks-footer

Package Overview
Dependencies
Maintainers
6
Versions
1237
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@crave/farmblocks-footer

Farmblocks Footer

latest
Source
npmnpm
Version
2.5.13
Version published
Weekly downloads
29
45%
Maintainers
6
Weekly downloads
 
Created
Source

logo-farmblocks

See Storybook image

Design spec

See it on zeplin

Usage

import React, { Component } from "react";
import { render } from "react-dom";
import Footer from "@crave/farmblocks-footer";
import Button, { buttonTypes, buttonSizes } from "@crave/farmblocks-button";

const App = () => (
  <div>
    <Footer
      helpText="Lorem ipsum dolor sit amet, consectetur adipiscing elit"
      helpLinkHref="#"
      helpLinkText="Get support"
      actions={[
        <Button
          onClick={() => console.log("handle onCancelClick")}
          size={buttonSizes.MEDIUM}
          text="Cancel"
          key="cancel"
        />,
        <Button
          onClick={() => console.log("handle onSaveClick")}
          type={buttonTypes.PRIMARY}
          size={buttonSizes.MEDIUM}
          text="Save"
          key="save"
        />
      ]}
    />
  </div>
);

render(<App />, document.getElementById("root"));

API

Helper section:

  • helpText: string (required)
  • helpLinkText: string (required)
  • helpLinkHref: string (required)

Action section:

  • actions: array of dom nodes

See it in the source

License

MIT

Keywords

farmblocks

FAQs

Package last updated on 10 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts