How to use the @carbon/icons/lib/caret--up/16 function in @carbon/icons

To help you get started, we’ve selected a few @carbon/icons examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github carbon-design-system / carbon-custom-elements / src / components / number-input / number-input.ts View on Github external
const helperTextClasses = classMap({
      [`${prefix}--form__helper-text`]: true,
      [`${prefix}--form__helper-text--disabled`]: this.disabled,
    });

    const incrementButton = html`
      <button type="button" aria-atomic="true" aria-live="polite" aria-label="${this.incrementButtonAssistiveText}" class="${prefix}--number__control-btn up-icon">
        ${CaretUp16()}
      </button>
    `;
    const decrementButton = html`
      <button type="button" aria-atomic="true" aria-live="polite" aria-label="${this.decrementButtonAssistiveText}" class="${prefix}--number__control-btn down-icon">
        ${CaretDown16()}
      </button>
    `;