1
Fork 0
mirror of https://github.com/Steffo99/bluelib.git synced 2024-12-22 19:44:21 +00:00

Add Footer component

This commit is contained in:
Steffo 2021-08-24 23:03:50 +02:00
parent 52b41c67b5
commit bb6eb10c1f
Signed by: steffo
GPG key ID: 6965406171929D01
2 changed files with 34 additions and 0 deletions

View file

@ -0,0 +1,17 @@
import * as React from "react"
import * as ReactDOM from "react-dom"
import * as Decorators from "../../utils/Decorators"
import { Footer as FooterComponent } from "./Footer"
export default {
component: FooterComponent,
title: "Layouts/Footer",
decorators: [Decorators.Bluelib],
}
export const Footer = props => (
<FooterComponent {...props}>© 2021 Stefano Pigozzi</FooterComponent>
)
Footer.args = {}

View file

@ -0,0 +1,17 @@
import * as React from "react"
import * as ReactDOM from "react-dom"
import * as Types from "../../types"
import {BaseElement} from "../BaseElement"
import mergeClassNames from "classnames"
export interface FooterProps extends Types.BluelibHTMLProps<HTMLElement> {}
export function Footer({...props}: FooterProps): JSX.Element {
props.bluelibClassNames = mergeClassNames(props.bluelibClassNames, "page-footer")
return (
<BaseElement kind={"footer"} {...props}/>
)
}