baidu/san
A fast, portable, flexible JavaScript component framework
repo name | baidu/san |
repo link | https://github.com/baidu/san |
homepage | https://baidu.github.io/san/ |
language | JavaScript |
size (curr.) | 6242 kB |
stars (curr.) | 4097 |
created | 2016-08-29 |
license | MIT License |
Download
NPM:
$ npm i san
CDN:
<script src="https://unpkg.com/san@latest"></script>
Quick Start
<!DOCTYPE html>
<html>
<head>
<title>Quick Start</title>
<script src="https://unpkg.com/san@latest"></script>
</head>
<body>
<script>
const MyApp = san.defineComponent({
template: `
<div>
<input type="text" value="{=name=}">
<p>Hello {{name}}!</p>
</div>
`
});
let myApp = new MyApp({
data: {
name: 'San'
}
});
myApp.attach(document.body);
</script>
</body>
</html>
Examples
Document
Companions
- san-devtool - Chrome DevTool extension
- san-router - SPA Router
- san-store - Application States Management
- san-update - Immutable Data Update
- san-factory - Component register and instantiation
- santd - Components Library following the Ant Design specification
- san-mui - Material Design Components Library
- san-xui - A Set of SAN UI Components that widely used on Baidu Cloud Console
- drei - VSCode extension for SAN
ChangeLog
Please visit document ChangeLog
License
San is MIT licensed.