@spectrum-web-components/split-button
Version:
An `sp-split-button` surfaces an immediately envokable action via it's main button, as well as a list of alternative actions in its toggleable menu overlay. By default, any actions envoked from the overlay will replace the main action button. When leverag
21 lines (20 loc) • 632 B
JavaScript
import "@spectrum-web-components/split-button/sync/sp-split-button.js";
import { html } from "@spectrum-web-components/base";
import { runSplitButtonTests } from "./index.js";
function wrapInDiv(storyArgument) {
return html`
<div>${storyArgument}</div>
`;
}
const deprecatedMenu = () => html`
<sp-menu>
<sp-menu-item>Option 1</sp-menu-item>
<sp-menu-item>Option Extended</sp-menu-item>
<sp-menu-item>Short</sp-menu-item>
</sp-menu>
`;
describe("Splitbutton", () => {
runSplitButtonTests(wrapInDiv, deprecatedMenu);
});
//# sourceMappingURL=split-button-sync.test.js.map
;