UI Components for Vue based on Adobe Spectrum (spectrum-css)
- It was created "based" on Spectrum and is not the same as Spectrum.
- This project was not developed by Adobe.
- Not the same as React Spectrum, Spectrum Web Components API.
yarn add @toshusai/spectrum-vue
Register Components to global.
import * as components from "@toshusai/spectrum-vue"
import Vue from "vue"
Object.entries(components).forEach(([name, component]) => {
Vue.component(name, component)
})
Add style.
import "@toshusai/spectrum-vue/dist/index.css"
Add global css.
@spectrum-css/vars/dist/spectrum-global.css
<html class="spectrum spectrum--medium spectrum--dark" dir="ltr">
<body class="spectrum-Body"> </body>
</html>
Accordion | β |
ActionBar | π§ |
ActionButton | β |
ActionGroup | β |
ActionMenu | β |
AssetFile | β |
AssetFolder | β |
AssetImage | β |
AssetList | π§ |
AutoComplete | π§ |
Avatar | β |
Badge | β |
Breadcrumbs | β |
BreadcrumbsItem | β |
Button | β |
ButtonGroup | β |
Calendar | π§ |
CalendarDate | π§ |
Card | π§ |
Checkbox | β |
CoachMark | π§ |
ColorArea | π§ |
ColorLoupe | π§ |
ColorSlider | π§ |
ColorWheel | π§ |
Combobox | π§ |
ContextMenu | π§ |
DatePicker | π§ |
Dial | π§ |
Dialog | β |
Divider | β |
DropIndicator | π§ |
Dropzone | β |
FieldGroup | β |
FieldLabel | β |
Form | β |
FormItem | β |
HelpText | β |
HintTextfield | π§ |
Icon | β |
InlineAlert | β |
ItemListItem | π§ |
Link | β |
LogicButton | β |
Menu | β |
MenuDivider | β |
MenuItem | β |
MenuItemHeader | β |
Meter | β |
Modal | β |
PaginationButton | β |
Picker | β |
PickerButton | β |
Popover | π§ |
ProgressBar | β |
ProgressCircle | β |
QuickAction | β |
Radio | β |
Sidenav | π§ |
Slider | β |
SliderTextfield | β |
SplitView | β |
SplitViewPane | β |
SplitViewSplitter | β |
Table | β |
Tabs | π§ |
Tag | β |
TextArea | β |
Textfield | β |
Toast | β |
TreeItem | π§ |
TreeView | π§ |
TreeViewItem | π§ |
MIT
Serve documents site. http://localhost:10000/spectrum-vue
cd docs
npm install
npm run dev
Build and replace dev docs node_modules.
npm install
npm run build && rsync dist docs/node_modules/@toshusai/spectrum-vue
Generate docs. Check scripts/README.md
cd scripts
node generateTemplate.js