Skip to content

Latest commit

 

History

History

viewer-toolbar-group

vertex-viewer-toolbar-group

A <vertex-viewer-toolbar-group> is an element that groups related UI controls within a <vertex-viewer-toolbar>.

Styling

By default, this component only provides the necessary CSS to layout elements within a group and does not provide any styling. You can customize borders, backgrounds, and padding through CSS.

<style>
  .group {
    border: 1px solid grey;
    background: lightgrey;
    padding: 0.25rem;
  }
</style>

<vertex-viewer-toolbar>
  <vertex-viewer-toolbar-group class="group">
    <button>Click Me</button>
  </vertex-viewer-toolbar-group>
</vertex-viewer-toolbar>

Direction

By default, elements flow horizontally. You can change the flow direction using the direction property.

<vertex-viewer-toolbar-group direction="vertical"></vertex-viewer-toolbar-group>

Properties

Property Attribute Description Type Default
direction direction "horizontal" | "vertical" 'horizontal'

Dependencies

Used by

Graph

graph TD;
  vertex-viewer-default-toolbar --> vertex-viewer-toolbar-group
  style vertex-viewer-toolbar-group fill:#f9f,stroke:#333,stroke-width:4px
Loading

Built with StencilJS