Usage
Wrap multiple Button within a FieldGroup to group them together.
<template>
<B24FieldGroup>
<B24Button color="air-primary-copilot" label="Button" />
<B24Button color="air-primary-copilot" label="Button" />
</B24FieldGroup>
</template>
No split
If you use elements with different colors, use the no-split property to disable the display of the separator.
<template>
<B24FieldGroup no-split>
<B24Button color="air-primary-copilot" label="Button" />
<B24Button color="air-primary-success" label="Button" />
<B24Button color="air-primary-alert" label="Button" />
</B24FieldGroup>
</template>
Size
Use the size prop to change the size of all the buttons.
<template>
<B24FieldGroup size="xl">
<B24Button color="air-primary-copilot" label="Button" />
<B24Button color="air-primary-copilot" label="Button" />
</B24FieldGroup>
</template>
Orientation
Use the orientation prop to change the orientation of the buttons. Defaults to horizontal.
<template>
<B24FieldGroup orientation="vertical">
<B24Button color="air-primary-copilot" label="Button" />
<B24Button color="air-primary-copilot" label="Button" />
</B24FieldGroup>
</template>
Examples
With input
You can use components like Input, InputMenu, Select SelectMenu, etc. within a field group.
<template>
<B24FieldGroup>
<B24Input placeholder="Enter token" />
<B24Button label="Button" />
</B24FieldGroup>
</template>
With tooltip
You can use a Tooltip within a field group.
With dropdown menu
You can use a DropdownMenu within a field group.
With badge
You can use a Badge within a field group.
https://
API
Props
Slots
Theme
app.config.ts
export default defineAppConfig({
b24ui: {
fieldGroup: {
base: 'relative',
variants: {
size: {
xss: '',
xs: '',
sm: '',
md: '',
lg: '',
xl: ''
},
orientation: {
horizontal: 'flex flex-row -space-x-px',
vertical: 'flex flex-col -space-y-px'
}
}
}
}
})
vite.config.ts
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import bitrix24UIPluginVite from '@bitrix24/b24ui-nuxt/vite'
export default defineConfig({
plugins: [
vue(),
bitrix24UIPluginVite({
b24ui: {
fieldGroup: {
base: 'relative',
variants: {
size: {
xss: '',
xs: '',
sm: '',
md: '',
lg: '',
xl: ''
},
orientation: {
horizontal: 'flex flex-row -space-x-px',
vertical: 'flex flex-col -space-y-px'
}
}
}
}
})
]
})