diff --git a/src/components/GridItem.astro b/src/components/GridItem.astro index 68072d4..e5dc7c8 100644 --- a/src/components/GridItem.astro +++ b/src/components/GridItem.astro @@ -3,67 +3,69 @@ import SimpleMenu from '../layouts/SimpleMenu.astro'; import Icon from './Icon.astro'; export interface Props { - id: string; title: string; text: string; url: string; - width?: number; + width?: number; // rem + btnAttr?: Object; + btnIcon?: string; } const { - id, title, text, url, width = 9, + btnAttr = null, + btnIcon = "", } = Astro.props; + +// add gi-btn class to the secondary button +if (btnAttr != null) { + btnAttr["class"] = (btnAttr["class"] || "") + " gi-btn"; +} --- -