TypeScript Component Reps
import React from 'react'
type ImageProps = {
src: string
alt?: string
}
const FeatureImage: React.FC<ImageProps> = ({ src }) => {
return (
<div className="w-[300px] md:[300px] lg:[320px] shadow-2xl font-Raleway">
<img src={src} alt="Card Items 1" className="w-full h-auto" />
</div>
)
}
export default FeatureImage
Shirshak kandel