import * as React from 'react';
import { Carousel, Image } from '@fluentui/react-northstar';
const imageAltTags = {
ade: 'Portrait of Ade',
elliot: 'Portrait of Elliot',
kristy: 'Portrait of Kristy',
nan: 'Portrait of Nan',
};
const carouselItems = [
{
key: 'ade',
id: 'ade',
content: ,
},
{
key: 'elliot',
id: 'elliot',
content: ,
},
{
key: 'kristy',
id: 'kristy',
content: ,
},
{
key: 'nan',
id: 'nan',
content: ,
},
];
const CarouselExample = () => (
({
key: index,
'aria-controls': item.id,
'aria-label': imageAltTags[item.id],
})),
}}
items={carouselItems}
getItemPositionText={(index: number, size: number) => `${index + 1} of ${size}`}
/>
);
export default CarouselExample;