mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
22 lines
511 B
TypeScript
22 lines
511 B
TypeScript
import type { SvelteComponentTyped } from "svelte";
|
|
import type { SvelteHTMLElements } from "svelte/elements";
|
|
|
|
type $RestProps = SvelteHTMLElements["div"];
|
|
|
|
type $Props = {
|
|
/**
|
|
* Set to `true` to stack the buttons vertically
|
|
* @default false
|
|
*/
|
|
stacked?: boolean;
|
|
|
|
[key: `data-${string}`]: any;
|
|
};
|
|
|
|
export type ButtonSetProps = Omit<$RestProps, keyof $Props> & $Props;
|
|
|
|
export default class ButtonSet extends SvelteComponentTyped<
|
|
ButtonSetProps,
|
|
Record<string, any>,
|
|
{ default: {} }
|
|
> {}
|