Add common CSS and components

[MAILPOET-2677]
This commit is contained in:
Amine Ben hammou
2020-03-11 13:17:04 +01:00
committed by Veljko V
parent f98229372e
commit c4d53df406
7 changed files with 127 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
import React from 'react';
type Props = {
title: string
description: string
htmlFor: string
}
export default ({ title, description, htmlFor }: Props) => (
<div className="mailpoet-settings-label">
<label className="mailpoet-settings-label-title" htmlFor={htmlFor}>{title}</label>
<p className="description">{description}</p>
</div>
);