Represents a track configuration in Penpot. This interface includes properties for defining the type and value of a track used in layout configurations.

interface Track {
    type: TrackType;
    value: null | number;
}

Properties

Properties

type: TrackType

The type of the track. This can be one of the following values:

  • 'flex': A flexible track type.
  • 'fixed': A fixed track type.
  • 'percent': A track type defined by a percentage.
  • 'auto': An automatic track type.
value: null | number

The value of the track. This can be a number representing the size of the track, or null if not applicable.