🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

@lordicon/react

Package Overview
Dependencies
Maintainers
2
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lordicon/react

This library allows you to easily integrate the playback of Lordicon icons into a React application.

1.11.0
latest
Source
npm
Version published
Weekly downloads
1.8K
20.43%
Maintainers
2
Weekly downloads
 
Created
Source

React

This library allows you to easily integrate the playback of Lordicon icons into a React application. This library provides built-in support for both web and native environments.

Installation

$ npm install @lordicon/react

Usage

Sample usage:

import { Player } from '@lordicon/react';

const ICON = require('./assets/lock.json');

export default function Sample() {    
  const playerRef = useRef<Player>(null);
  
  const onPlayPress = () => {
    playerRef.current?.playFromBeginning();
  }

  return (
    <Player 
      ref={playerRef} 
      icon={ ICON }
    />
  );
}

More examples

For more code samples demonstrating various possibilities, please refer to the 'demo' folder.

  • Lordicon - Lordicon is a powerful library of thousands of carefully crafted animated icons. element.
  • Lottie - Render After Effects animations natively on Web, Android and iOS, and React Native.

Keywords

lordicon

FAQs

Package last updated on 05 May 2025

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