BlogPlaygroundOne

VIcon API


Props
name
type
default
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.

boolean
false

Removes the ability to click or target the component.

boolean
false

Applies margin at the start of the component.

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

Apply a specific icon using the v-icon component.

string | number
undefined

Sets the component’s opacity value

string | number
'default'

Sets the height and width of the component. Default unit is px. Can also use the following predefined sizes: x-small, small, default, large, and x-large.

boolean
false

Applies margin at the end of the component.

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

Specify a custom tag used on the root element.

string
undefined

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

Slots
never

The default Vue slot.

SASS Variables
name
default
0.38
8px
normal
1
8px
8px
1em
tools.map-deep-merge(
  (
    'x-small': 1em,
    'small': 1.25em,
    'default': 1.5em,
    'large': 1.75em,
    'x-large': 2em,
  ),
  $icon-sizes
)
0
middle