3.0.0 • Published 3 years ago

@arvinxu/macos-traffic-light v3.0.0

Weekly downloads
-
License
-
Repository
github
Last release
3 years ago

@arvinxu/macos-traffic-light

NPM version NPM downloads

macOS 上的控制按钮

npm.io

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

3.0.0

3 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.0

3 years ago