UNPKG

@atlaskit/button

Version:

A button triggers an event or action. They let users know what will happen next.

30 lines (29 loc) 1.46 kB
/* split-button-container.tsx generated by @compiled/babel-plugin v3.0.2 */ import "./split-button-container.compiled.css"; import * as React from 'react'; import { ax, ix } from "@compiled/react/runtime"; var buttonStyles = { splitButton: "_1e0c116y _kqswh2mm _4cvr1h6o _o5721q9c", defaultAppearanceContainer: "_2rko1qi0 _12ji1l7x _1cwg1n1a _1qu2nqa1 _12y3t94y", defaultAppearanceDisabledContainer: "_12jibk0g" }; // TODO: Fill in the component {description} and ensure links point to the correct {packageName} location. // Remove links that the component does not have (such as usage). If there are no links remove them all. /** * __Split button container__ * * A split button container {description}. * * - [Examples](https://atlassian.design/components/{packageName}/examples) * - [Code](https://atlassian.design/components/{packageName}/code) * - [Usage](https://atlassian.design/components/{packageName}/usage) */ export var SplitButtonContainer = function SplitButtonContainer(_ref) { var appearance = _ref.appearance, children = _ref.children, _ref$isDisabled = _ref.isDisabled, isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled; return /*#__PURE__*/React.createElement("div", { className: ax([appearance === 'default' && buttonStyles.defaultAppearanceContainer, appearance === 'default' && isDisabled && buttonStyles.defaultAppearanceDisabledContainer, buttonStyles.splitButton]) }, children); };