New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@crave/farmblocks-empty-state

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@crave/farmblocks-empty-state

Farmblocks empty state


Version published
Weekly downloads
4
decreased by-84.62%
Maintainers
3
Weekly downloads
 
Created

logo-farmblocks

Empty State

A placeholder to use on screens without content.

Design specs

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

FAQs

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