@blueprintui/grid
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

BlueprintUI Grid

Accelerate your development with a flexible UI datagrid that works everywhere.

npm version

Installation

To use the datagrid install the following,

npm install @blueprintui/grid @blueprintui/themes

Optional packages for layout and typography utilities are also available.

npm install @blueprintui/layout @blueprintui/typography

CSS

To use components the base theme CSS file must be loaded into the page. This can be done via a CSS import or HTML link.

@import '@blueprintui/themes/index.min.css';

or

<link rel="stylesheet" href="@blueprintui/themes/index.min.css"> 

CDN

Blueprint UI Components can be used via CDNs for fast and easy prototyping.

<link rel="stylesheet" href="https://unpkg.com/@blueprintui/themes/index.min.css">
<link rel="stylesheet" href="https://unpkg.com/@@blueprintui/themes/dark/index.min.css">

<script type="module">
  import 'https://cdn.jsdelivr.net/npm/@blueprintui/grid/include/core.js/+esm';
</script>

Using a Component

Once the theme CSS is loaded the grid can be imported via JavaScript imports.

import '@blueprintui/grid/include/core.js';
import '@blueprintui/grid/include/keynav.js';
<body bp-theme="dark">

  <bp-grid>
    <bp-grid-header>
      <bp-grid-column>Column</bp-grid-column>
      <bp-grid-column>Column</bp-grid-column>
      <bp-grid-column>Column</bp-grid-column>
      <bp-grid-column>Column</bp-grid-column>
    </bp-grid-header>

    <bp-grid-row>
      <bp-grid-cell>Cell</bp-grid-cell>
      <bp-grid-cell>Cell</bp-grid-cell>
      <bp-grid-cell>Cell</bp-grid-cell>
      <bp-grid-cell>Cell</bp-grid-cell>
    </bp-grid-row>
  </bp-grid>

</body>

Package Sidebar

Install

npm i @blueprintui/grid

Weekly Downloads

16

Version

2.1.0

License

MIT

Unpacked Size

164 kB

Total Files

114

Last publish

Collaborators

  • coryrylan