A free and open-source block-based email template builder.
TypeScript amazonsesdeveloper-toolsemailemail-editoremail-marketingemail-templateemail-template-builderemailapiemailjshtml-email-editorno-codenocode-email-editoropen-source-email-buildersendgridtransactional-emailswysiwyg-email-editorwysiwyg-html-editor
import React, { CSSProperties } from 'react';
import { z } from 'zod';
export const SpacerPropsSchema = z.object({
props: z
.object({
height: z.number().gte(0).optional().nullish(),
})
.optional()
.nullable(),
});
export type SpacerProps = z.infer<typeof SpacerPropsSchema>;
export const SpacerPropsDefaults = {
height: 16,
};
export function Spacer({ props }: SpacerProps) {
const style: CSSProperties = {
height: props?.height ?? SpacerPropsDefaults.height,
};
return <div style={style} />;
}