diff --git a/src/docs/constants.ts b/src/docs/constants.ts
index d141836..91c5a02 100644
--- a/src/docs/constants.ts
+++ b/src/docs/constants.ts
@@ -20,8 +20,9 @@ type Route = { name: string; link: string };
export const routes: Route[] = [
{ name: 'Alert', link: '/examples/alert' },
{ name: 'Button', link: '/examples/button' },
- { name: 'Checkbox', link: '/examples/checkbox' },
{ name: 'Card', link: '/examples/card' },
+ { name: 'Checkbox', link: '/examples/checkbox' },
+ { name: 'CloseButton', link: '/examples/close-button' },
{ name: 'Heading', link: '/examples/heading' },
{ name: 'IconButton', link: '/examples/icon-button' },
{ name: 'Logo', link: '/examples/logo' },
diff --git a/src/lib/components/CloseButton/CloseButton.svelte b/src/lib/components/CloseButton/CloseButton.svelte
new file mode 100644
index 0000000..8d8b2fa
--- /dev/null
+++ b/src/lib/components/CloseButton/CloseButton.svelte
@@ -0,0 +1,9 @@
+
+
+
diff --git a/src/lib/index.ts b/src/lib/index.ts
index d7b0d4e..fdc5cfb 100644
--- a/src/lib/index.ts
+++ b/src/lib/index.ts
@@ -6,6 +6,7 @@ export { default as CardDescription } from '$lib/components/Card/CardDescription
export { default as CardFooter } from '$lib/components/Card/CardFooter.svelte';
export { default as CardHeader } from '$lib/components/Card/CardHeader.svelte';
export { default as CardTitle } from '$lib/components/Card/CardTitle.svelte';
+export { default as CloseButton } from '$lib/components/CloseButton/CloseButton.svelte';
export { default as Checkbox } from '$lib/components/Form/Checkbox.svelte';
export { default as Input } from '$lib/components/Form/Input.svelte';
export { default as Label } from '$lib/components/Form/Label.svelte';
diff --git a/src/lib/types.ts b/src/lib/types.ts
index fa0134a..c10313a 100644
--- a/src/lib/types.ts
+++ b/src/lib/types.ts
@@ -12,12 +12,15 @@ type ButtonOrAnchor =
| ({ href?: never } & HTMLButtonAttributes)
| ({ href: string } & HTMLAnchorAttributes);
-type ButtonBaseProps = {
+export type CloseButtonProps = {
+ size?: Size;
+ variant?: Variants;
+};
+
+type ButtonBaseProps = CloseButtonProps & {
class?: string;
color?: Color;
- size?: Size;
shape?: Shape;
- variant?: Variants;
} & ButtonOrAnchor;
export type IconProps = {
diff --git a/src/routes/examples/close-button/+page.svelte b/src/routes/examples/close-button/+page.svelte
new file mode 100644
index 0000000..316d552
--- /dev/null
+++ b/src/routes/examples/close-button/+page.svelte
@@ -0,0 +1,41 @@
+
+
+
+ {#snippet component()}
+
+
+ Basic
+
+
+
+
+
+
+
+
+
+
+ Filled
+
+
+
+
+
+
+
+
+
+
+ Outline
+
+
+
+
+
+
+
+ {/snippet}
+