driver.js / docs /src /components /FeatureMarquee.tsx
kamrify's picture
Add usecases and examples
7660c1f
raw
history blame
705 Bytes
import React from "react";
import Marquee from "react-fast-marquee";
const featureList = [
"Open Source",
"Written in TypeScript",
"No dependencies",
"Vanilla JavaScript",
"Light-weight",
"Feature Rich",
"Highly Customizable",
"Supports all Major Browsers",
"Easy to use",
"Accessible",
"Frameworks Ready",
"MIT Licensed",
];
export function FeatureMarquee() {
return (
<Marquee autoFill>
<p className="py-4 text-2xl whitespace-nowrap">
{ featureList.map((featureItem, index) => (
<React.Fragment key={index}>
{ featureItem }<span className="mx-3">&middot;</span>
</React.Fragment>
))}
</p>
</Marquee>
);
}