index.tsx 457 B

123456789101112131415161718
  1. import type { CSSProperties, FC } from 'react'
  2. import React from 'react'
  3. import s from './style.module.css'
  4. type Props = {
  5. type?: 'horizontal' | 'vertical'
  6. // orientation?: 'left' | 'right' | 'center'
  7. className?: string
  8. style?: CSSProperties
  9. }
  10. const Divider: FC<Props> = ({ type = 'horizontal', className = '', style }) => {
  11. return (
  12. <div className={`${s.divider} ${s[type]} ${className}`} style={style}></div>
  13. )
  14. }
  15. export default Divider