old.martials.no/src/types/interfaces.ts

25 lines
466 B
TypeScript
Raw Normal View History

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 {
title: string,
}
export interface CardProps extends LinkProps {
title: string;
2022-12-04 17:51:05 +01:00
}