Skip to content

Commit

Permalink
docs: update README
Browse files Browse the repository at this point in the history
  • Loading branch information
metonym committed Oct 27, 2024
1 parent c2e37cf commit 7d8c16f
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import type { SvelteHTMLElements } from "svelte/elements";

type RestProps = SvelteHTMLElements["button"];

export interface ButtonProps extends RestProps {
type $Props = {
/**
* @default "button"
*/
Expand All @@ -53,7 +53,11 @@ export interface ButtonProps extends RestProps {
* @default false
*/
primary?: boolean;
}

[key: `data-${string}`]: any;
};

export type ButtonProps = Omit<RestProps, keyof $Props> & $Props;

export default class Button extends SvelteComponentTyped<
ButtonProps,
Expand Down Expand Up @@ -83,7 +87,7 @@ import type { SvelteHTMLElements } from "svelte/elements";

type RestProps = SvelteHTMLElements["button"];

export interface ButtonProps extends RestProps {
type $Props = {
/**
* @default "button"
*/
Expand All @@ -94,7 +98,9 @@ export interface ButtonProps extends RestProps {
* @default false
*/
primary?: boolean;
}
};

export type ButtonProps = Omit<RestProps, keyof $Props> & $Props;

export default class Button extends SvelteComponentTyped<
ButtonProps,
Expand Down

0 comments on commit 7d8c16f

Please sign in to comment.