Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ab-ctrl

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ab-ctrl

react component: dropdown, tooltip, popup

  • 0.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Demo

npm i ab-ctrl --save

import React, { Component } from 'react';

import ABCtrl from 'ab-ctrl';
import TooltipSingleton from 'ab-ctrl/tooltip/singleton';
import Tooltip from 'ab-ctrl/tooltip';
import Dropdown from 'ab-ctrl/dropdown';
import Popup from 'ab-ctrl/popup';

class Demo extends Component {
  constructor(props, context) {
    super(props, context);
  }
  render() {
    const { value } = this.state;
    return (
      <ABCtrl>
        <ABCtrl.Trigger></ABCtrl.Trigger>
        <ABCtrl.Content></ABCtrl.Content>
      </ABCtrl>
    );
  }
}

<ABCtrl triggerType // string, 'hover|click' interactive // boolean, onActive // function onDeactive // function ignoreBlur // boolean toggleable // boolean

<ABCtrl.Trigger component // react component or tag, default is 'div'

<ABCtrl.Content align // string, 'tl|tc|tr|rt|rc|rb|br|bc|bl|lb|lc|lt' onClick // function => should close on content click or not

</ABCtrl.Content> </ABCtrl.Trigger>

// special usage for singleton tooltip import TooltipSingleton from 'ab-ctrl/tooltip/singleton';

// only once in the whole app

// bottom center

Keywords

FAQs

Package last updated on 26 Jun 2016

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc