Link Search Menu Expand Document

You are browsing the documentation for v0.x.
Visit here for the newest version.

API / Prop types

VueGL components recognize a prop value as its prop type. Therefore you don’t need to bind raw objects or primitives even still you can do that.

Each prop type has a specific method to parse prop values. For example, an int type prop is parsed by parseInt() function internally. So any values castable to string and parsable as integer are acceptable.

Examples below set the segments prop to 16.

  • Passing a static string

    <vgl-circle-geometry segments="16" />
    
  • Passing a number

    <vgl-circle-geometry :segments="16" />
    

Table of contents