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:
parent
52b41c67b5
commit
bb6eb10c1f
2 changed files with 34 additions and 0 deletions
17
src/components/layouts/Footer.stories.jsx
Normal file
17
src/components/layouts/Footer.stories.jsx
Normal 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 = {}
|
17
src/components/layouts/Footer.tsx
Normal file
17
src/components/layouts/Footer.tsx
Normal 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}/>
|
||||
)
|
||||
}
|
Loading…
Reference in a new issue