Components
Links
AppLink
Gatsby Link composed to MuiLink.
Example
Code
import { AppLink } from '@cieloazul310/gatsby-theme-aoi';
<AppLink href="/">
AppLink example
</AppLink>
<AppLink href="https://github.com/cieloazul310/gatsby-aoi">
External AppLink example
</AppLink>
AppLinkButton
Gatsby Link composed to MuiButton.
Example
AppLink example External exampleCode
import { AppLinkButton } from '@cieloazul310/gatsby-theme-aoi';
<AppLinkButton href="/" variant="contained">
AppLink example
</AppLinkButton>
<AppLinkButton
href="https://github.com/cieloazul310/gatsby-aoi"
color="secondary"
>
External example
</AppLinkButton>
PanelLink
Gatsby Link and external link component styled with Panel Button.
Example
Top page
External example
Disable Border
Code
import { PanelLink } from '@cieloazul310/gatsby-theme-aoi';
<PanelLink href="/">
Top page
</PanelLink>
<PanelLink href="https://github.com/cieloazul310/gatsby-aoi">
External example
</PanelLink>
<PanelLink href="https://www.mito-hollyhock.net" disableBorder>
Disable Border
</PanelLink>
Layout component
SectionWrapper and Section
SectionWrapper is wrapper component for adding margin to each child component, which extends MUI Stack component.
Section is simple section component with bgcolor.
Code
import { SectionWrapper, Section } from '@cieloazul310/gatsby-theme-aoi';
function MyLayout({ children }) {
return (
<SectionWrapper>
<Section component="main">
{children}
</Section>
<Section component="footer">
<p>Built with Gatsby</p>
</Section>
</SectionWrapper>
)
}
Article
with maxWidth
props.
Jumbotron
Others
Seo
Component for Gatsby Head API.
Code
import { Seo } from '@cieloazul310/gatsby-theme-aoi';
export function Head() {
return <Seo title="Catalogue" />;
}
Next
MDX Components