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

  • 0.2.0-alpha.bc47c422
  • 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}
    primaryButtonLabel="Primary Action"
    onPrimaryButtonClick={action("clicked")}
    info={text}
  />
);

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

API

Text properties: title(required), description, info Button: primaryButtonLabel, onPrimaryButtonClick Thumbnail: imageSrc

License

MIT

Keywords

FAQs

Package last updated on 21 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