| name | soybean-ui |
| description | Helps use SoybeanUI in Vue and Nuxt apps, including choosing styled vs headless packages, configuring styles and ConfigProvider, and looking up component docs and generated API summaries. Use when building with @soybeanjs/ui or @soybeanjs/headless, asking which SoybeanUI component to use, or needing props, slots, usage, and theming guidance for a specific component. |
| license | MIT |
SoybeanUI
Vue 3 UI library with styled and headless packages.
Quick start
- Prefer
@soybeanjs/ui for ready-to-use S* components.
- Prefer
@soybeanjs/headless when you want SoybeanUI logic and accessibility without bundled styles.
- Load REFERENCE.md for setup, docs routes, and which deeper reference to open next.
- Load references/headless-vs-styled.md when deciding between
@soybeanjs/ui and @soybeanjs/headless.
- Load references/theming.md for
SConfigProvider, theme vocabulary, locale, and direction.
- Load references/components.md when you need component categories or are not sure which component fits.
- Then load only the exact
components/*.md files you need.
Available guidance
| File | Topics |
|---|
| REFERENCE.md | Setup overview, docs routes, and reference map |
| references/headless-vs-styled.md | Package choice, architecture, component patterns |
| references/theming.md | SConfigProvider, theme tokens, locale, RTL, global config |
| references/components.md | Component index grouped by category |
components/*.md | Per-component overview, features, docs summary, exported symbols, props, emits, slots |
Loading files
Key concepts
| Concept | Description |
|---|
| Styled package | @soybeanjs/ui exposes SButton, SDialog, and other pre-styled S* components |
| Headless package | @soybeanjs/headless exposes unstyled primitives, logic, a11y, and Compact aggregations |
SConfigProvider | Global config for theme, size, locale, direction, nonce, and tooltip defaults |
| Compact components | Data-driven aggregated components such as AccordionCompact and TableCompact |
| Generated docs | This skill's component files are generated from docs/src/docs/en/components and docs/src/generated/api |
Basic patterns
import '@soybeanjs/ui/styles.css';
import Components from 'unplugin-vue-components/vite';
import { UiResolver } from '@soybeanjs/ui/resolver';
Components({
resolvers: [UiResolver()]
});
<template>
<SConfigProvider :theme="{ theme: { primary: 'indigo' }, size: 'md' }" dir="rtl">
<App />
</SConfigProvider>
</template>
Notes
- For repo-internal component authoring or SoybeanUI source changes, use the
soybean-ui-component-development skill instead.
- Regenerate the component reference files with
pnpm sui skills after docs or generated API data changes.