New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-expanse

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-expanse

This is a expanse animation component based on react

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

React Expanse Animation

基于 react 的 展开和收起动画 (在线查看DEMO)[https://monoplasty.github.io/react-expanse/]

如有问题欢迎(issue)[https://github.com/monoplasty/react-expanse/issues]

Installation

npm install react-expanse --save

Usage

import React, { useState } from 'react'
import ReactDom from 'react-dom'
import Expanse from "../../src/index"

function Demo() {
  const [show, setShow] = useState(false);
  return  <div>
    <button onClick={()=>setShow(!show)}>点我点我</button>
    <Expanse show={show}>
      <div style={{width: '400px', background: "#f2f2f2"}}>
        {[1,2,3,4,5,6,7,8].map(item => <div key={item}>
          这里是内容啊内容啊
        </div>)}
      </div>
    </Expanse>
    </div>
}
ReactDom.render(
    <Demo />,
    document.getElementById('app')
)

License

MIT

Keywords

react

FAQs

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