Skip to content

Commit

Permalink
feat(ui-kit/image-box): StringifyableRecord content type
Browse files Browse the repository at this point in the history
  • Loading branch information
njfamirm authored and AliMD committed Feb 8, 2023
1 parent 78d3976 commit 703bd90
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ui/ui-kit/src/card/image-box.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import {css, customElement, html, property, nothing, ifDefined, type PropertyValues} from '@alwatr/element';
import {StringifyableRecord} from '@alwatr/type';

import '@alwatr/icon';

import {AlwatrSurface} from './surface.js';

Expand All @@ -8,7 +11,7 @@ declare global {
}
}

export type ImageBoxContent = {
export interface ImageBoxContent extends StringifyableRecord {
image: string;
headline: string;
description?: string;
Expand All @@ -18,7 +21,7 @@ export type ImageBoxContent = {
stated?: boolean;
preLine?: boolean;
elevated?: number;
};
}

/**
* Alwatr image box element.
Expand Down

0 comments on commit 703bd90

Please sign in to comment.