3.0.0 • Published 4 years ago
@arvinxu/macos-traffic-light v3.0.0
@arvinxu/macos-traffic-light
macOS 上的控制按钮

Install
yarn add @arvinxu/macos-traffic-lightUsage
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
License
MIT ® Arvin Xu