feat: bootstrap docs layout & sidebar

This commit is contained in:
Jean-Philippe Sirois
2019-07-27 15:52:25 -04:00
parent 6ef875f51f
commit 7b8740f5e0
16 changed files with 340 additions and 69 deletions
@@ -0,0 +1,20 @@
import React from "react"
import { SidebarTitle } from "./style"
export interface DocsSidebarSectionProps {
readonly title: string
}
const DocsSidebarSection = ({
title,
children,
}: React.PropsWithChildren<DocsSidebarSectionProps>) => {
return (
<div>
<SidebarTitle>{title}</SidebarTitle>
{children}
</div>
)
}
export default DocsSidebarSection
@@ -0,0 +1,5 @@
import styled from "styled-components";
export const SidebarTitle = styled.h3`
text-transform: uppercase;
`;