@arvinxu/macos-traffic-light
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

@arvinxu/macos-traffic-light

NPM version NPM downloads

macOS 上的控制按钮

Install

yarn add @arvinxu/macos-traffic-light

Usage

import React from 'react';
import TrafficLight from '@arvinxu/macos-traffic-light';

const Demo = () => {
  return (
    <TrafficLight
      onClose={() => {
        alert('Pressed closed');
      }}
      onMinimize={() => {
        alert('Pressed onMinimize');
      }}
      onMaximize={() => {
        alert('Pressed onMaximize');
      }}
    />
  );
};

export default Demo;

Demo

Demo

License

MIT ® Arvin Xu

Readme

Keywords

none

Package Sidebar

Install

npm i @arvinxu/macos-traffic-light

Weekly Downloads

240

Version

3.0.0

License

none

Unpacked Size

24.9 kB

Total Files

27

Last publish

Collaborators

  • arvinxx