### Custom Container Examples - Markdown
Source: https://github.com/fkcaikengren/carrybrick-ui/blob/main/docs/vue/_example.md
Illustrates the usage of custom containers in VitePress markdown for different informational purposes. These include 'info', 'tip', 'warning', 'danger', and 'details' blocks.
```markdown
::: info
This is an info box.
:::
::: tip
This is a tip.
:::
::: warning
This is a warning.
:::
::: danger
This is a dangerous warning.
:::
::: details
This is a details block.
:::
```
--------------------------------
### CBButton - Vue Button Component Examples
Source: https://context7.com/fkcaikengren/carrybrick-ui/llms.txt
Demonstrates the usage of the CBButton component in Vue 3, showcasing various types, variants, states, sizes, and icon support. It highlights how to integrate the button component into a Vue template with basic script setup.
```vue
DefaultPrimarySuccessWarningDangerInfoPlain ButtonText ButtonRound ButtonDisabledLoadingSearchSmallDefaultLargeSubmitReset
```
--------------------------------
### Syntax Highlighting with Line Highlight - JavaScript
Source: https://github.com/fkcaikengren/carrybrick-ui/blob/main/docs/vue/_example.md
Demonstrates syntax highlighting for JavaScript code using VitePress's built-in markdown extensions. The `{4}` syntax highlights line 4. This feature is powered by Shiki.
```javascript
export default {
data () {
return {
msg: 'Highlighted!'
}
}
}
```
--------------------------------
### Global Installation of CarryBrick UI (TypeScript)
Source: https://context7.com/fkcaikengren/carrybrick-ui/llms.txt
Installs all CarryBrick UI components globally within a Vue application using `app.use()`. This makes all components readily available without individual imports. Dependencies: '@carrybrick-ui/vue'.
```typescript
import { createApp } from 'vue'
import CarryBrickUI from '@carrybrick-ui/vue'
import App from './App.vue'
const app = createApp(App)
// Install all components globally
app.use(CarryBrickUI)
app.mount('#app')
```
--------------------------------
### CBInput - Vue Input Component Examples
Source: https://context7.com/fkcaikengren/carrybrick-ui/llms.txt
Illustrates the functionality of the CBInput component in Vue 3, including basic text input, password fields, inputs with prefix/suffix icons, clearable functionality, disabled/readonly states, and different size options. It shows how to use v-model for data binding and reactive updates.
```vue
```
--------------------------------
### CBTextarea - Vue Textarea Component Examples
Source: https://context7.com/fkcaikengren/carrybrick-ui/llms.txt
Demonstrates the implementation of the CBTextarea component in Vue 3, showing its basic usage, fixed row configuration, autosize functionality (both automatic and with min/max row limits), and disabled state. It utilizes v-model for two-way data binding.
```vue
```
--------------------------------
### CBPopover - Popover Component (Vue)
Source: https://context7.com/fkcaikengren/carrybrick-ui/llms.txt
A floating content container that appears relative to a reference element. Supports configurable placement and trigger behavior (click, hover). Dependencies: '@carrybrick-ui/vue', '@element-plus/icons-vue' (for buttons in examples).
```vue
Click Me
Popover Title
This is the popover content
Hover Me
Content appears on hover
Top
Content on top
Bottom
Content on bottom
Left
Content on left
Right
Content on right
```
--------------------------------
### Import Individual Vue Components
Source: https://context7.com/fkcaikengren/carrybrick-ui/llms.txt
Demonstrates importing and registering specific CarryBrick UI components (CBButton, CBInput, CBForm, CBFormItem) individually in a Vue 3 application. This approach enhances tree-shaking by only including necessary components. It requires Vue 3 and the @carrybrick-ui/vue package.
```typescript
import { createApp } from 'vue'
import { CBButton, CBInput, CBForm, CBFormItem } from '@carrybrick-ui/vue'
import type { FormRules, FormInstance } from '@carrybrick-ui/vue'
import App from './App.vue'
const app = createApp(App)
// Install specific components
app.component('CBButton', CBButton)
app.component('CBInput', CBInput)
app.component('CBForm', CBForm)
app.component('CBFormItem', CBFormItem)
app.mount('#app')
```
--------------------------------
### CBCollapse and CBCollapseItem - Collapsible Panel Components (Vue)
Source: https://context7.com/fkcaikengren/carrybrick-ui/llms.txt
Implements accordion-style collapsible panels with support for single or multiple open items. Uses `v-model` for state management and accepts `accordion` prop for single-item expansion. Dependencies: '@carrybrick-ui/vue'.
```vue
Content Title
This is the content for panel 1
You can put any HTML content here
This is the content for panel 2
This is the content for panel 3
Content for section A
More content here
Content for section B
Content for section C
```
--------------------------------
### Vue Form Validation with CBForm and CBFormItem
Source: https://context7.com/fkcaikengren/carrybrick-ui/llms.txt
Demonstrates how to use CBForm and CBFormItem for creating forms with field-level validation. It utilizes async-validator for rule definition and provides programmatic control over form submission and reset. Dependencies include @carrybrick-ui/vue.
```vue
SubmitReset
```
--------------------------------
### Vue CBSwitch Toggle Switch Component
Source: https://context7.com/fkcaikengren/carrybrick-ui/llms.txt
Illustrates the usage of the CBSwitch component for creating toggle switches. It supports customization of values, colors, text labels, sizes, and states like disabled and loading. Dependencies include @carrybrick-ui/vue.
```vue
```
--------------------------------
### CBIcon - Icon Component (Vue)
Source: https://context7.com/fkcaikengren/carrybrick-ui/llms.txt
A wrapper component for icons, compatible with Element Plus icons. Allows customization of size and color. Dependencies: '@carrybrick-ui/vue', '@element-plus/icons-vue'.
```vue
```
=== COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.