@atlaskit/button
Version:
A button triggers an event or action. They let users know what will happen next.
28 lines (27 loc) • 1.29 kB
JavaScript
/* 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";
const 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 const SplitButtonContainer = ({
appearance,
children,
isDisabled = false
}) => /*#__PURE__*/React.createElement("div", {
className: ax([appearance === 'default' && buttonStyles.defaultAppearanceContainer, appearance === 'default' && isDisabled && buttonStyles.defaultAppearanceDisabledContainer, buttonStyles.splitButton])
}, children);