Skip to main content

Getting Started

Favorite Heart for favoriting items such as resources/applications etc.

Version

Installation

NPM

npm install @availity/favorites @availity/api-axios axios react-query

Yarn

yarn add @availity/favorites @availity/api-axios axios react-query

Example

import React from 'react';
import Favorites from '@availity/favorites';
import '@availity/favorites/style.scss';

const Example = () => (
<Favorites>
{({ default: FavoritesProvider, FavoriteHeart }) => (
<FavoritesProvider>
<FavoriteHeart id="12345" name="My App" />
</FavoritesProvider>
)}
</Favorites>
);