Separator component (#9310)

* Separator component
This commit is contained in:
Amir Omidi
2020-02-24 16:53:42 -08:00
committed by GitHub
parent d7ea1123ef
commit 628fd8d74d
9 changed files with 100 additions and 3 deletions

View File

@@ -0,0 +1,17 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the Source EULA. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { Disposable } from 'vs/base/common/lifecycle';
export class Separator extends Disposable {
private readonly element: HTMLHRElement;
constructor(container: HTMLElement) {
super();
this.element = document.createElement('hr');
container.append(this.element);
}
}