Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@crave/farmblocks-empty-state

Package Overview
Dependencies
Maintainers
3
Versions
1247
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@crave/farmblocks-empty-state

Farmblocks empty state

  • 1.1.0-alpha.8cd2eafc
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
585
increased by479.21%
Maintainers
3
Weekly downloads
 
Created
Source

logo-farmblocks

Empty State

A placeholder to use on screens without content.

Design specs

  • Neutral Empty State
  • Customized Empty State
  • In Section - Empty States

Usage

import React from 'react';
import { render } from 'react-dom';

import EmptyState from '@crave/farmblocks-empty-state';

const text =
  "Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Etiam porta sem malesuada magna mollis euismod.";
const imgSrc =
  "https://sourcewhatsgood.com/assets/images/utility_images/gallery-third-about-a518a29f64.jpg";

const App = () => (
  <EmptyState
    imageSrc={imgSrc}
    title="Empty State Title"
    description={text}
    primaryActionText="Primary Action"
    onPrimaryActionClick={() => console.log("clicked")}
    info={text}
  />
);

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

API

  • Thumbnail: imageSrc
  • Text properties: title(required), description, info
  • Primary Button: primaryActionText, onPrimaryActionClick
  • Secondary Button: secondaryActionText, onSecondaryActionClick

License

MIT

Keywords

FAQs

Package last updated on 28 Nov 2017

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc