BlogPlaygroundOne

VBanner API


Props
name
type
default
string
undefined

Designates a specific src image to pass to the thumbnail.

string
undefined

Applies specified color to the control’s background. Used on components that also support the color prop. - supports utility colors with or without bg- prefix (for example success, purple or bg-purple) or CSS color (#033 or rgba(255, 0, 0, 0.5)). Find a list of built-in classes on the colors page.

string | number | boolean
false

Applies utility border classes to the component. To use it, you need to omit the border- prefix, (for example use border-sm as border="sm"). Find a list of the built-in border classes on the borders page.

string
undefined

Applies specified color to the control - supports utility colors with or without text- prefix (for example success, purple or text-purple) or CSS color (#033 or rgba(255, 0, 0, 0.5)). Find a list of built-in classes on the colors page.

'default' | 'comfortable' | 'compact'
'default'

Adjusts the vertical height used by the component.

string | number
undefined

Designates an elevation applied to the component between 0 and 5. You can find more information on the elevation page.

string | number
undefined

Sets the height for the component.

  | string
  | (string | [string, number])[]
  | (new () => any)
  | FunctionalComponent
undefined

Apply a specific icon using the v-icon component.

'one' | 'two' | 'three'
undefined

The amount of visible lines of text before it truncates.

Anchor
undefined

Specifies the component’s location. Can combine by using a space separated string.

string | number
undefined

Sets the maximum height for the component.

string | number
undefined

Sets the maximum width for the component.

string | number
undefined

Sets the minimum height for the component.

string | number
undefined

Sets the minimum width for the component.

boolean
null

Applies the mobile banner styles.

number | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'
undefined

Overrides the display configuration default screen size that the component should be considered in mobile.

'fixed' | 'static' | 'relative' | 'absolute' | 'sticky'
undefined

Sets the position for the component.

string | number | boolean
undefined

Designates the border-radius applied to the component. This can be 0, xs, sm, true, lg, xl, pill, circle, and shaped. Find more information on available border radius classes on the Border Radius page.

boolean
false

Forces the banner actions onto a new line. This is not applicable when the banner has lines="one".

boolean
false

Applies position: sticky to the component with top: 0. You can find more information on the MDN documentation for sticky position.

string | (new () => any) | FunctionalComponent
'div'

Specify a custom tag used on the root element.

string
undefined

Specify content text for the component.

string
undefined

Specify a theme for this component and all of its children.

boolean
false

Removes any applied border-radius from the component.

string | number
undefined

Sets the width for the component.

Slots
never
never
never
never

The slot used for the action’s content such as a v-btn.

The default Vue slot.

Slot for icon at beginning of banner.

Slot for the component’s text content.

SASS Variables
name
default
20px
20px
rgb(var(--v-theme-surface))
(
  $banner-border-color,
  $banner-border-style,
  $banner-border-width,
  $banner-border-thin-width
)
settings.$border-color-root
map.get(settings.$rounded, 0)
settings.$border-style-root
thin
0 0 thin 0
tools.theme-color('on-surface', var(--v-high-emphasis-opacity))
('default': 0, 'comfortable': -1, 'compact': -2)
0
tools.map-deep-get(settings.$typography, 'body-medium', 'size')
tools.map-deep-get(settings.$typography, 'label-large', 'line-height')
16px
8px
8px
16px
8px
8px
16px
absolute fixed sticky
24px
settings.$border-radius-root
36px
0
1
90px
(
  $banner-background,
  $banner-color
)
100%