This example shows how to natively use a YUI Gallery module.

{{>yui-gallery}}

Loading Gallery Modules

If a Gallery module has been pushed to the CDN, it will be available to use as a first class YUI 3 module.

To load a Gallery module, simply add its module name to your `YUI().use` call. In the code sample below we are using the `gallery-bitly` module.

``` YUI().use('gallery-bitly', function(Y) { //Y.bitly is available here }); ```

Bitly example

This simple example demonstrates using the gallery-bitly module to expand and shorten url's.

Note: We are using the gallery module directly from the `use` statement, no configuration needed.

``` {{>yui-gallery-js}} ```