--- Title: Library dialog component Added: v3.0.0 Status: Active Last reviewed: 2018-12-07 --- # [Library dialog component](../../../lib/content-services/src/lib/dialogs/library/library.dialog.ts "Defined in library.dialog.ts") Creates a new Content Services document library/site. ![Dropdown sites](../../docassets/images/CreateLibraryDialog.png) ## Basic Usage ```html ``` ## Class members ### Events | Name | Type | Description | | ---- | ---- | ----------- | | error | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`` | Emitted when an error occurs. | | success | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`` | Emitted when the new library is created successfully. The event parameter is a [SiteEntry](https://github.com/Alfresco/alfresco-js-api/blob/master/src/alfresco-core-rest-api/docs/SiteEntry.md) object with the details of the newly-created library. | ## Details This component lets the user create a new document library/site with the usual name, ID, description and access restrictions. See the [Sites](https://support.hyland.com/r/Alfresco/Alfresco-Content-Services/23.3/Alfresco-Content-Services/Using/Sites) section of the Content Services documentation for more information. ## See also - [Sites dropdown component](../components/sites-dropdown.component.md)