More Premium Hugo Themes Premium React Themes

Snacks

The Instacart Component Library

Snacks

The Instacart Component Library

Author Avatar Theme by instacart
Github Stars Github Stars: 83
Last Commit Last Commit: May 30, 2025 -
First Commit Created: Apr 29, 2023 -
Snacks screenshot

Overview

The JavaScript Component Library by Instacart, called Snacks, is a pre-release library that provides a collection of reusable components for web development. The library is still in the pre-release stage, which means there may be breaking changes in the future.

Features

  • Reusable components for web development
  • Support for animations using react-transition-group
  • Compatibility with popular JavaScript libraries such as React and ReactDom
  • Easy installation with yarn or npm

Installation

You can install Snacks and its dependencies using either yarn or npm.

Using yarn

yarn add snacks

Using npm

npm install snacks

Snacks also has a few peer dependencies that are required to use the library. If your app already has these dependencies installed, there is no need to install them again.

For the main component library, the following dependencies are required:

  • prop-types v15 or v16
  • @instacart/radium v18+
  • React v15 or v16
  • ReactDom v15 or v16

If you would like to use animations, you will also need to install react-transition-group v2.2.

Summary

Snacks is a JavaScript component library by Instacart that offers a collection of reusable components for web development. It supports animations using react-transition-group and is compatible with popular JavaScript libraries such as React and ReactDom. The installation process is straightforward using yarn or npm, and the library has a few peer dependencies that may already be installed in your app. However, it is important to note that Snacks is still in the pre-release stage, so there may be breaking changes in the future.