Drive Picker API Custom Web Component Preview

We're excited to announce the preview release of the open-source Google Drive Picker web component<drive-picker/>, now published to NPM at @GoogleWorkspace/drive-picker-element!

What is the Google Drive Picker web component?

The Google Drive Picker web component provides a convenient way to integrate the Google Picker API into your web applications. Web components are reusable, custom HTML elements that encapsulate their own functionality and styling, allowing developers to create modular and independent UI widgets that work in any web framework.

The following code shows how to integrate this component into a vanilla JavaScript web application. You can also explore the Storybook demo.

picker image.png

 

 

 

 

 

Why Google Picker API?

The drive.file scope grants per-file access, improving security and limiting access to necessary files and features. It allows your app to create and modify Drive files opened or shared with it. Learn more about Google Drive API scopes and the Google Drive Picker API.

Feedback welcome!

Help us reach a stable release! Submit bugs and feature requests to our GitHub repository.

Thanks,

Workspace Developer Relations Team

1 0 1,458