Skip to content

Commit 708cba9

Browse files
committed
chore(Footer): updated to 5.0.0
1 parent 25303f9 commit 708cba9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Footer/Footer.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,25 @@ import React from 'react'
22
import clsx from 'clsx'
33
import { twMerge } from 'tailwind-merge'
44

5-
import { IComponentBaseProps } from '../types'
5+
import { IComponentBaseProps, ComponentLayout } from '../types'
66

77
import FooterTitle from './FooterTitle'
88

99
export type FooterProps = React.HTMLAttributes<HTMLDivElement> &
1010
IComponentBaseProps & {
1111
center?: boolean
12+
layout?: ComponentLayout
1213
}
1314

1415
const Footer = React.forwardRef<HTMLDivElement, FooterProps>(
15-
({ center, dataTheme, className, ...props }, ref) => {
16+
({ center, layout = 'vertical', dataTheme, className, ...props }, ref) => {
1617
const classes = twMerge(
1718
'footer',
1819
className,
1920
clsx({
2021
'footer-center': center,
22+
'footer-vertical': layout === 'vertical',
23+
'footer-horizontal': layout === 'horizontal',
2124
})
2225
)
2326

0 commit comments

Comments
 (0)