|
| 1 | +<script setup lang="ts"> |
| 2 | +import { |
| 3 | + InlineCitation, |
| 4 | + InlineCitationCard, |
| 5 | + InlineCitationCardBody, |
| 6 | + InlineCitationCardTrigger, |
| 7 | + InlineCitationCarousel, |
| 8 | + InlineCitationCarouselContent, |
| 9 | + InlineCitationCarouselHeader, |
| 10 | + InlineCitationCarouselIndex, |
| 11 | + InlineCitationCarouselItem, |
| 12 | + InlineCitationCarouselNext, |
| 13 | + InlineCitationCarouselPrev, |
| 14 | + InlineCitationSource, |
| 15 | + InlineCitationText, |
| 16 | +} from '@repo/elements/inline-citation' |
| 17 | +
|
| 18 | +const citation = { |
| 19 | + text: 'The technology continues to evolve rapidly, with new breakthroughs being announced regularly', |
| 20 | + sources: [ |
| 21 | + { |
| 22 | + title: 'Advances in Natural Language Processing', |
| 23 | + url: 'https://example.com/nlp-advances', |
| 24 | + description: |
| 25 | + 'A comprehensive study on the recent developments in natural language processing technologies and their applications.', |
| 26 | + }, |
| 27 | + { |
| 28 | + title: 'Breakthroughs in Machine Learning', |
| 29 | + url: 'https://mlnews.org/breakthroughs', |
| 30 | + description: |
| 31 | + 'An overview of the most significant machine learning breakthroughs in the past year.', |
| 32 | + }, |
| 33 | + { |
| 34 | + title: 'AI in Healthcare: Current Trends', |
| 35 | + url: 'https://healthai.com/trends', |
| 36 | + description: |
| 37 | + 'A report on how artificial intelligence is transforming healthcare and diagnostics.', |
| 38 | + }, |
| 39 | + { |
| 40 | + title: 'Ethics of Artificial Intelligence', |
| 41 | + url: 'https://aiethics.org/overview', |
| 42 | + description: |
| 43 | + 'A discussion on the ethical considerations and challenges in the development of AI.', |
| 44 | + }, |
| 45 | + { |
| 46 | + title: 'Scaling Deep Learning Models', |
| 47 | + url: 'https://deeplearninghub.com/scaling-models', |
| 48 | + description: |
| 49 | + 'Insights into the technical challenges and solutions for scaling deep learning architectures.', |
| 50 | + }, |
| 51 | + { |
| 52 | + title: 'Natural Language Understanding Benchmarks', |
| 53 | + url: 'https://nlubenchmarks.com/latest', |
| 54 | + description: |
| 55 | + 'A summary of the latest benchmarks and evaluation metrics for natural language understanding systems.', |
| 56 | + }, |
| 57 | + ], |
| 58 | +} |
| 59 | +</script> |
| 60 | + |
| 61 | +<template> |
| 62 | + <p class="text-sm leading-relaxed"> |
| 63 | + According to recent studies, artificial intelligence has shown remarkable |
| 64 | + progress in natural language processing. |
| 65 | + <InlineCitation> |
| 66 | + <InlineCitationText>{{ citation.text }}</InlineCitationText> |
| 67 | + <InlineCitationCard> |
| 68 | + <InlineCitationCardTrigger |
| 69 | + :sources="citation.sources.map((source) => source.url)" |
| 70 | + /> |
| 71 | + <InlineCitationCardBody> |
| 72 | + <InlineCitationCarousel> |
| 73 | + <InlineCitationCarouselHeader> |
| 74 | + <InlineCitationCarouselPrev /> |
| 75 | + <InlineCitationCarouselNext /> |
| 76 | + <InlineCitationCarouselIndex /> |
| 77 | + </InlineCitationCarouselHeader> |
| 78 | + <InlineCitationCarouselContent> |
| 79 | + <InlineCitationCarouselItem |
| 80 | + v-for="source in citation.sources" |
| 81 | + :key="source.url" |
| 82 | + > |
| 83 | + <InlineCitationSource |
| 84 | + :description="source.description" |
| 85 | + :title="source.title" |
| 86 | + :url="source.url" |
| 87 | + /> |
| 88 | + </InlineCitationCarouselItem> |
| 89 | + </InlineCitationCarouselContent> |
| 90 | + </InlineCitationCarousel> |
| 91 | + </InlineCitationCardBody> |
| 92 | + </InlineCitationCard> |
| 93 | + </InlineCitation>. |
| 94 | + </p> |
| 95 | +</template> |
0 commit comments