@arvinxu/macos-traffic-light
v3.0.0
Published
[![NPM version][version-image]][version-url] [![NPM downloads][download-image]][download-url]
Downloads
416
Readme
@arvinxu/macos-traffic-light
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
License
MIT ® Arvin Xu