mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-19 20:09:35 +00:00
* Breaking changes * - The `Popover` now uses a different markup. The trigger becomes a child of the component. - The new `PopoverContent` becomes an additional child of the `Popover` component. - remove `relative` property
24 lines
493 B
TypeScript
24 lines
493 B
TypeScript
import type { SvelteComponentTyped } from "svelte";
|
|
import type { SvelteHTMLElements } from "svelte/elements";
|
|
|
|
type RestProps = SvelteHTMLElements["span"];
|
|
|
|
export interface PopoverContentProps extends RestProps {
|
|
/**
|
|
* @default null
|
|
*/
|
|
className?: undefined;
|
|
|
|
/**
|
|
* @default {}
|
|
*/
|
|
contentProps?: {};
|
|
|
|
[key: `data-${string}`]: any;
|
|
}
|
|
|
|
export default class PopoverContent extends SvelteComponentTyped<
|
|
PopoverContentProps,
|
|
Record<string, any>,
|
|
{ default: {} }
|
|
> {}
|