Paper elements

This package wraps the Polymer project's paper elements, enabling Dart developers to easily use the Polymer implementation of Google's material design UI widgets.

You can find out more about paper elements here: http://www.polymer-project.org/docs/elements/material.html

The paper_elements package bundles all the paper elements into a single pub package, so that you can add paper_elements as a dependency in your pubspec. Installing npm and bower is not required.

Status

This is an early access version of the paper elements. The elements are still changing on both the JavaScript and Dart sides.

Using elements

All elements live at the top level of the lib/ folder.

Import into HTML:

<link rel="import" href="packages/paper_elements/paper_input.html">

Import into Dart:

import 'package:paper_elements/paper_input.dart';

Running demos

If you download or fork the repo from https://github.com/dart-lang/paper-elements, then you can use the pub command to run any single demo or the sampler, which contains all the demos.

If you only want to run a single demo, then you can edit pubspec.yaml to comment out all the entrypoints except the one you need.

To run the paper element sampler:

  1. From the top directory, use the pub serve command, specifying the example directory:

    pub serve example
    
  2. In a browser, visit http://localhost:8080/demo.html.

To create a deployable build of a demo or the paper element sampler, use pub build from the top directory:

pub build example

Copy the files from the resulting build directory to where you want to serve the files.

Note: Building the sampler takes a few minutes.

Libraries

paper_elements.paper_action_dialog

Dart API for the polymer element paper_action_dialog.

paper_elements.paper_autogrow_textarea

Dart API for the polymer element paper_autogrow_textarea.

paper_elements.paper_button

Dart API for the polymer element paper_button.

paper_elements.paper_button_base

Dart API for the polymer element paper_button_base.

paper_elements.paper_checkbox

Dart API for the polymer element paper_checkbox.

paper_elements.paper_dialog

Dart API for the polymer element paper_dialog.

paper_elements.paper_dialog_base

Dart API for the polymer element paper_dialog_base.

paper_elements.paper_dialog_transition

Dart API for the polymer element paper_dialog_transition.

paper_elements.paper_dropdown

Dart API for the polymer element paper_dropdown.

paper_elements.paper_dropdown_menu

Dart API for the polymer element paper_dropdown_menu.

paper_elements.paper_dropdown_transition

Dart API for the polymer element paper_dropdown_transition.

paper_elements.paper_fab

Dart API for the polymer element paper_fab.

paper_elements.paper_icon_button

Dart API for the polymer element paper_icon_button.

paper_elements.paper_input

Dart API for the polymer element paper_input.

paper_elements.paper_input_decorator

Dart API for the polymer element paper_input_decorator.

paper_elements.paper_item

Dart API for the polymer element paper_item.

paper_elements.paper_menu_button

Dart API for the polymer element paper_menu_button.

paper_elements.paper_progress

Dart API for the polymer element paper_progress.

paper_elements.paper_radio_button

Dart API for the polymer element paper_radio_button.

paper_elements.paper_radio_group

Dart API for the polymer element paper_radio_group.

paper_elements.paper_ripple

Dart API for the polymer element paper_ripple.

paper_elements.paper_shadow

Dart API for the polymer element paper_shadow.

paper_elements.paper_slider

Dart API for the polymer element paper_slider.

paper_elements.paper_spinner

Dart API for the polymer element paper_spinner.

paper_elements.paper_tab

Dart API for the polymer element paper_tab.

paper_elements.paper_tabs

Dart API for the polymer element paper_tabs.

paper_elements.paper_toast

Dart API for the polymer element paper_toast.

paper_elements.paper_toggle_button

Dart API for the polymer element paper_toggle_button.

paper_elements.sampler_scaffold

Dart API for the polymer element sampler_scaffold.