carbon-react
Version:
A library of reusable React components for easily building user interfaces.
2 lines (1 loc) • 382 B
JavaScript
import{jsx as t}from"react/jsx-runtime";import"react";import{StyledButtonToggleIcon as o}from"./button-toggle.style.js";import n from"../icon/icon.component.js";const e=({buttonIcon:e,buttonIconSize:i,disabled:r,hasContent:a})=>t(o,{buttonIconSize:i,hasContent:a,"data-role":"button-toggle-icon",children:t(n,{"aria-hidden":!0,type:e,fontSize:i,disabled:r})});export{e as default};