2022-12-04 17:51:05 +01:00
|
|
|
import { JSX } from "solid-js";
|
|
|
|
|
2022-12-21 13:56:42 +01:00
|
|
|
export interface SimpleProps {
|
2022-12-04 17:51:05 +01:00
|
|
|
className?: string,
|
2022-12-21 13:56:42 +01:00
|
|
|
style?: JSX.CSSProperties,
|
2022-12-04 17:51:05 +01:00
|
|
|
id?: string,
|
|
|
|
}
|
|
|
|
|
2022-12-21 13:56:42 +01:00
|
|
|
export interface ChildProps extends SimpleProps {
|
|
|
|
children?: JSX.Element,
|
|
|
|
}
|
|
|
|
|
2022-12-04 17:51:05 +01:00
|
|
|
export interface LinkProps extends ChildProps {
|
|
|
|
to?: string,
|
|
|
|
rel?: string,
|
|
|
|
newTab?: boolean,
|
2022-12-21 13:56:42 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface TitleProps extends ChildProps {
|
2022-12-21 15:47:08 +01:00
|
|
|
title?: string,
|
2022-12-21 13:56:42 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface CardProps extends LinkProps {
|
2022-12-21 15:47:08 +01:00
|
|
|
title?: string;
|
2022-12-04 17:51:05 +01:00
|
|
|
}
|