+
Examples
+
+ {usage}
+
{examples.map((example, i) => (
{
)}
{methods.length > 0 && (
- Methods
+ Methods
{methods.map((method, i) => (
))}
@@ -94,7 +92,7 @@ const ComponentReferenceTemplate = ({ data }) => {
{typeDefs.length > 0 && (
- Type definitions
+ Type definitions
{typeDefs.map((typeDef, i) => (
))}
diff --git a/src/templates/ComponentReferenceTemplate.module.scss b/src/templates/ComponentReferenceTemplate.module.scss
index 887a5965d..2b0b44c18 100644
--- a/src/templates/ComponentReferenceTemplate.module.scss
+++ b/src/templates/ComponentReferenceTemplate.module.scss
@@ -1,4 +1,6 @@
.componentExample:not(:last-child) {
+ border-bottom: 1px solid var(--color-neutrals-100);
+ padding-bottom: 2rem;
margin-bottom: 2rem;
}
diff --git a/src/templates/ReferenceTemplate.module.scss b/src/templates/ReferenceTemplate.module.scss
index 26cf29ff0..32003863d 100644
--- a/src/templates/ReferenceTemplate.module.scss
+++ b/src/templates/ReferenceTemplate.module.scss
@@ -11,3 +11,9 @@
.section:not(:last-child) {
margin-bottom: 2rem;
}
+
+.sectionTitle {
+ margin-bottom: 1rem;
+ font-size: 1.75rem;
+ font-weight: bold;
+}