blueprintui
v2.1.7
| パッケージ | ダウンロード | CIステータス | CDN |
|---|---|---|---|
BluePrint UIコンポーネントは、Webコンポーネントとして構築されています。これにより、さまざまなフレームワークやライブラリで動作することができます。 BluePrint UIは、個別に使用できるいくつかのパッケージに分割されます。コンポーネントを使用するには、以下をインストールするには、
npm install @blueprintui/componentsレイアウトおよびタイポグラフィーユーティリティ用のオプションのパッケージも利用できます。
npm install @blueprintui/layout @blueprintui/typographyコンポーネントを使用するには、ベーステーマCSSファイルをページにロードする必要があります。これは、CSSインポートまたはHTMLリンクを介して実行できます。
@import '@blueprintui/themes/index.min.css' ;
@import '@blueprintui/themes/dark/index.min.css' ;または
< link rel =" stylesheet " href =" @blueprintui/themes/index.min.css " >
< link rel =" stylesheet " href =" @blueprintui/themes/dark/index.min.css " > BluePrint UIコンポーネントは、高速かつ簡単なプロトタイピングのためにCDNを介して使用できます。
< 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/components/include/alert.js/+esm' ;
</ script > テーマCSSがロードされると、コンポーネントはJavaScriptインポートを介してインポートできます。
import '@blueprintui/components/include/alert.js' ; < body bp-theme =" { theme: 'dark' }); " >
< bp-alert status =" success " > hello there! </ bp-alert >
</ body >