Skip to content

Latest commit

 

History

History
67 lines (51 loc) · 1.54 KB

README.md

File metadata and controls

67 lines (51 loc) · 1.54 KB

GitHub Primer HTML5 Element Collection

Demo: https://htmlelement.github.io/github-primer/demo/

Button

Wraps the css-primer buttons module.

Supported button types

  • primary
  • danger
  • outline

Syntax

<primer-button [buttonType] [disabled]>Click Me</primer-button>

Example: Primary Button

<link rel="import" href="bower_components/github-primer-elements/button.html" />
<primer-button primary>Click Me</primer-button>

Octicons

<link rel="import" href="bower_components/github-primer-elements/octicon.html" />
<primer-octicon icon="bug"></primer-octicon>

Markdown

<link rel="import" href="bower_components/github-primer-elements/octicon.html" />
<primer-markdown>
  # Heading
  Some Text
  - Bullet One
  - Bullet Two
</primer-markdown>

Table

<link rel="import" href="bower_components/github-primer-elements/table.html" />
<table is="prime-table">
  <tr>
    <th>Name</th>
    <th>Role</th>
  </tr>
  <tr>
    <td>Stefan Grönke</td>
    <td>Maintainer</td>
  </tr>
</table>

License

This project includes the markdown compiler Showdown, GitHub Primer css and octicons.

The WebComponents built from it are licenced under MIT.

Please see LICENCE for detailed information and license texts.