sparrow ui
vious version of pnpm code
? Personalização poderosa do tema em todos os detalhes.
? Capacidade super adaptativa
IE/Edge | Raposa de fogo | Cromo | Safári | Elétron |
---|---|---|---|---|
IE11, borda | últimas 2 versões | últimas 2 versões | últimas 2 versões | últimas 2 versões |
npm i @sparrowend/ui
yarn add @sparrowend/ui
pnpm add @sparrowend/ui
jsx
import { Button } from '@sparrowend/ui' ;
const App = ( ) => (
< >
< Button type = "primary" > PRESS ME </ Button >
</ >
) ;
E importe o estilo manualmente:
import '@sparrowend/ui/dist/spui.css' ;
// or
// import '@sparrowend/ui/es/button/style';
HTML
< html >
< link href = 'dist/spui.css' > </ link >
< script src = "dist/spui.js" > </ script >
or
< script type = "module" >
import { Message } from 'dist/spui-es.js';
Message.error('the end');
</ script >
< sp-button > click me </ sp-button >
</ html >
importar mapa
< html >
< link href = 'dist/spui.css' > </ link >
< script type = "importmap" >
{
"imports" : {
"sparrow-ui" : "dist/spui-es.js"
}
}
</ script >
< script type = "module" >
import { Message } from 'sparrow-ui';
Message.error('sucessful');
</ script >
</ html >
nó (compilar ---> qualquer)
<!--layout.art-->
< ! doctype html >
< html >
< head >
< meta charset = "utf-8" >
< title > { { block 'title' } } My Site { { / block } } </ title >
< link href = 'dist/spui.css' > </ link >
< script src = "dist/spui.js" > </ script >
{ { block 'head' } }
< link rel = "stylesheet" href = "main.css" >
{ { / block } }
</ head >
< body >
{ { block 'content' } } { { / block } }
</ body >
</ html >
{ { if user } }
< h2 > { { user . name } } </ h2 >
< sp - button > Thanks ! </ sp - button >
{ { / if}}
Use o Gitpod, um ambiente de desenvolvimento online gratuito para GitHub.
Ou clone localmente:
$ git clone [email protected]:lianglei-git/sparrow-ui.git
$ cd sparrow-ui
$ npm install
$ npm run start
Minhas boas-vindas a todas as contribuições. Por favor, entre em contato comigo em [email protected]