12345678910111213141516 |
- function getInputClass(classPrefix, suffix, align, disabled) {
- var className = [classPrefix + '__control'];
- if (align) {
- className.push(classPrefix + '__control--' + align);
- }
- if (disabled) {
- className.push(classPrefix + '__control--disabled');
- }
- return className.join(' ');
- }
- module.exports = {
- getInputClass: getInputClass,
- };
|