basic-editing.vue 1021 B

12345678910111213141516171819202122232425262728293031
  1. <script setup lang="ts">
  2. import LiveExample from "~/components/LiveExample.vue"
  3. </script>
  4. <template>
  5. <UPage>
  6. <UPageHeader title="Basic Editing" description="Headings, paragraphs, and structure." />
  7. <UPageBody>
  8. <div class="space-y-8">
  9. <LiveExample
  10. title="Headings"
  11. description="Use 1-6 # characters followed by a space."
  12. :content="`# Heading 1\n\n## Heading 2\n\n### Heading 3\n\n#### Heading 4`"
  13. />
  14. <LiveExample
  15. title="Paragraphs"
  16. description="Blank lines separate paragraphs. Each paragraph is its own Block."
  17. :content="`First paragraph with some text.\n\nSecond paragraph goes here.\n\nThird paragraph with more content for testing.`"
  18. />
  19. <LiveExample
  20. title="Horizontal Rule"
  21. description="Three or more dashes create a horizontal rule."
  22. :content="`Content above the rule\n\n---\n\nContent below the rule`"
  23. />
  24. </div>
  25. </UPageBody>
  26. </UPage>
  27. </template>