@expofp/floorplan
Version:
Interactive floor plan library for expos and events
2 lines (1 loc) • 476 B
JavaScript
import{jsx as s,jsxs as n}from"react/jsx-runtime";import"./ShowMoreButton.scss";import m from"classnames";import{t}from"../utils/i18n";function i({expanded:o,className:r,suffix:e,...a}){return n("button",{...a,type:"button",className:m("show-more-button",{"is-expanded":o},r),"aria-expanded":o,children:[s("i",{className:"icon-chevron-down","aria-hidden":"true"}),s("span",{className:"show-more-button__label",children:o?t("Show less"):t("Show more")}),e]})}export default i;