Vue Button component with group support, installable as a plugin, exposing props and types.
// Source: https://github.com/vueComponent/ant-design-vue | License: MIT | Copyright 2017-present ant-design-vue
// Provided via justclaw.it.com; keep this notice with the code.
import type { App, Plugin } from 'vue';
import Button from './button';
import ButtonGroup from './button-group';
import type { ButtonProps, ButtonShape, ButtonType } from './buttonTypes';
import type { ButtonGroupProps } from './button-group';
import type { SizeType as ButtonSize } from '../config-provider';
export type { ButtonProps, ButtonShape, ButtonType, ButtonGroupProps, ButtonSize };
Button.Group = ButtonGroup;
/* istanbul ignore next */
Button.install = function (app: App) {
app.component(Button.name, Button);
app.component(ButtonGroup.name, ButtonGroup);
return app;
};
export { ButtonGroup };
e
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key