@atlaskit/button
Version:
A button triggers an event or action. They let users know what will happen next.
25 lines • 768 B
JavaScript
/* content.tsx generated by @compiled/babel-plugin v3.0.2 */
import "./content.compiled.css";
import { ax, ix } from "@compiled/react/runtime";
import React from 'react';
const styles = {
text: "_1reo15vq _18m915vq _16jlkb7n _1o9zkb7n _1bto1l2s _o5721q9c",
icon: "_1e0c1txw _16jlidpf _1o9zidpf _1wpz1h6o _1wybidpf _vwz4idpf _uiztglyw",
common: "_v564g17y",
fade: "_tzy4idpf"
};
/**
* __Content__
*
* Used for slots within a Button, including icons and text content.
*/
const Content = ({
children,
type = 'text',
isLoading
}) => {
return /*#__PURE__*/React.createElement("span", {
className: ax([styles.common, type === 'text' && styles.text, type === 'icon' && styles.icon, isLoading && styles.fade])
}, children);
};
export default Content;