👉🏻 Shadcn Vue is a powerful and highly customizable UI component library built specifically for Vue.
👉🏻 In this article, we'll explore what Shadcn Vue is, its origins, how to integrate it into Vue apps, and most importantly, why it might be the perfect fit for your next project.
👉🏻 Daniel Roe explains the differences between server and route middleware in a Nuxt project.
💡 Nuxt Tip: Rendering Dynamic Markdown
In my current freelance project, I had to render dynamic Markdown content in a Nuxt 3+ application. The Markdown content was written by redactors in a CMS, provided via an API, and needed to be rendered on the client-side.
Luckily, Nuxt 3+ provides a solution for rendering Markdown content using the @nuxtjs/mdc@nuxtjs/mdc module. This module allows you to render Markdown content as HTML in your Nuxt 3+ application.
You can add it to your project using the following command:
1npx nuxi@latest module add mdc
This command will install the @nuxtjs/mdc@nuxtjs/mdc module and add it to the modules section of your nuxt.config.tsnuxt.config.ts file.
Now you can use the MDCMDC component to render Markdown content in your Vue components. Here's an example of how you can use it:
1<script setup lang="ts">2const md = `# h134## h256This is a paragraph78This is a [link](https://mokkapps.de)910::my-button11Click me12::`13</script>1415<template>16 <MDC :value="md" tag="article" />17</template>
👉🏻 The @scope rule in CSS allows developers to directly attach styles to HTML elements, limiting the scope of the CSS to the children of the targeted DOM node.
Weekly Vue News #194 Reactive Time Ago View online Hi 👋 I'm on vacation this week, so no special news from my side — just some fresh Vue & Nuxt content for you! Enjoy this issue and have a lovely week ☀️ Vue 📕 Optimizing heavy operations in Vue with Web Worke...
Tuesday, August 20, 2024 My linkblog, which posts to the Links tab on Scripting News, as well as Bluesky , Mastodon and RSS , now also posts to Twitter and Threads . # Today would have been my mother's 92nd birthday. She died in 2018, and I still haven't, deep inside, fully gotten the message that she's gone. Probably the most significant person in my life. I find most of my adult relationships can be traced back to my relationship with her. # Ignore the NY Times # When President Biden took the stage last night at the DNC, I had a moment of buyer's remorse. He looked so good in his black suit, and the pictures of the new candidates, and their spouses, looked comical in comparison to the president who was about to speak. # Why did Walz have a permanent frown on his face. I find his presence next to Harris is almost always awkward. He's taller, and moves a lot. I noticed this with Sanders when he was debating Clinton in 2016. Sh...
Tuesday, June 27, 2023 Manton Reece writes that we should welcome Facebook's new cage fighting platform, not block it. I'm neutral. I don't know what it is. I seriously doubt it'll be exciting. And I think they should stop calling themselves Meta, that's stupid and dishonest. They're Facebook. They need to own that, because it's their actual name. # I am celebrating the imminent arrival of Facebook's thing, whatever it is, by buying a domain . It's what I do. Some people collect shoes. Other people classic cars or vinyl records. # My friend Doc # Doc is about to lose his Harvard blog, and he's stuck in California with too much to do and is afraid it will slip through is fingers if he has to prioritize his time so as not to be able to save it. I wrote him this email. # A perfect storm. # I had something smaller happen when I was moving out of my house in Berkeley in 2010. # My server was ...
评论
发表评论