Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

skava / @skava/ui   js

Repository URL to install this package:

Version: 4.2.0-a11y.0 

/ src / components / molecules / MeterBar / deps.ts

/**
 *
 * @param alignType prefix | suffix
 * receives the align type as a string format
 * and return the flex order index value to position the element
 */
function getBarCountPosition(alignType: string): string {
  switch (alignType) {
    case 'prefix':
      return '0'
    case 'suffix':
      return '1'
    default:
      return 'none'
  }
}

export { getBarCountPosition }