Socket
Socket
Sign inDemoInstall

@ygpedroso/react-autohide

Package Overview
Dependencies
8
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @ygpedroso/react-autohide

React component that autohides itself after the specified amount of milliseconds


Version published
Maintainers
1
Install size
23.6 kB
Created

Readme

Source

@ygpedroso/react-autohide

code style: prettier code linting: eslint code quality: jest MIT license Build Status

React component that autohides itself after the specified amount of milliseconds

Install

npm install --save @ygpedroso/react-autohide

or

yarn add @ygpedroso/react-autohide

Usage

import React, { Component } from 'react'

import AutoHide from '@ygpedroso/react-autohide'

class Example extends Component {
  render () {
    return (
      <AutoHide>
        My Content
      </AutoHide>
    )
  }
}

Available props

  • ms Amount of milliseconds to wait before hiding the component: (Type: Number, Default value: 1000)
  • children Required, content to be displayed and autohide: (Type Node)

Styling

By default the children component will be displayed inside a span element, with .autohide class and none styling what so ever:

But the styles can be modified by overriding this css class:

  1. .autohide: Entire Component container.

License

@ygpedroso/react-autohide is MIT-licensed.

Keywords

FAQs

Last updated on 05 Dec 2018

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc