UNPKG

@netdata/netdata-ui

Version:

netdata UI kit

10 lines 266 B
var pillHeights = { "default": "18px", large: "22px" }; var getPillHeight = function getPillHeight(height, size, tiny) { if (height) return height; if (tiny) return "8px"; return pillHeights[size] || pillHeights["default"]; }; export default getPillHeight;