mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-19 20:09:35 +00:00
fix(notification): add extends to button
This way, props from Button can be used in NotificationActionButton and still typecheck correctly.
This commit is contained in:
parent
ab5eff5205
commit
85d8a1f1c6
3 changed files with 9 additions and 2 deletions
|
@ -1,7 +1,8 @@
|
|||
/// <reference types="svelte" />
|
||||
import type { SvelteComponentTyped } from "svelte";
|
||||
import type { ButtonProps } from "../Button/Button.svelte";
|
||||
|
||||
export interface NotificationActionButtonProps {}
|
||||
export interface NotificationActionButtonProps extends ButtonProps {}
|
||||
|
||||
export default class NotificationActionButton extends SvelteComponentTyped<
|
||||
NotificationActionButtonProps,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue