Replace component CTA with Button with new props

This commit is contained in:
prototypa
2023-09-02 18:02:45 -04:00
parent c1fb20e916
commit 770dee10bd
32 changed files with 234 additions and 270 deletions

6
src/types.d.ts vendored
View File

@ -1,4 +1,5 @@
import type { AstroComponentFactory } from 'astro/runtime/server/index.js';
import type { HTMLAttributes } from 'astro/types';
export interface Post {
/** A unique ID number that identifies a post. */
@ -174,11 +175,10 @@ export interface Disclaimer {
}
// COMPONENTS
export interface CallToAction {
targetBlank?: boolean;
export interface CallToAction extends HTMLAttributes<a> {
variant?: 'primary' | 'secondary' | 'tertiary' | 'link';
text?: string;
icon?: string;
href?: string;
classes?: Record<string, string>;
}