Skip to content

Commit

Permalink
馃帹 Format
Browse files Browse the repository at this point in the history
  • Loading branch information
ElianCodes committed Mar 19, 2023
1 parent 4cface7 commit 9ca82c9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
6 changes: 3 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ declare module '@eliancodes/brutal-ui' {
href: string;
target?: '_blank' | '_self';
color?: string;
}
};

export function Button(props: ButtonProps): any;

type DefaultColorProps = {
color?: string;
}
};

export function Card(props: DefaultColorProps): any;
export function Pill(props: DefaultColorProps): any;
}
}
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export { default as Button } from './src/components/Button.astro';
export { default as Card } from './src/components/Card.astro';
export { default as Pill } from './src/components/Pill.astro';
export { default as Pill } from './src/components/Pill.astro';
2 changes: 1 addition & 1 deletion src/components/Card.astro
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ const { color } = Astro.props;
}
</style>

<div class="brutal-card">
<div class='brutal-card'>
<slot />
</div>
4 changes: 1 addition & 3 deletions src/components/Pill.astro
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ const { color } = Astro.props;
}
</style>

<span
class="brutal-pill"
>
<span class='brutal-pill'>
<slot />
</span>

0 comments on commit 9ca82c9

Please sign in to comment.