Skip to main content

Shadcn Vue Table: Tasks List

Premium
7 min read

In the following lessons, we will fill our "Tasks" page with the full CRUD. Let's start with a table.


Table Component from Shadcn

Let's show the table of tasks. Remember, we had seeded it into the database previously:

Vue starter kit uses a Vue+Tailwind Shadcn UI library so you don't need to install it, it comes already pre-configured.

Generally, using Shadcn components is very easy:

  1. Install the component with npx
  2. Import it on top of your Vue file
  3. Use it inside your...

The Full Lesson is Only for Premium Members

Want to access all of our courses? (30 h 09 min)

You also get:

55 courses
Premium tutorials
Access to repositories
Private Discord
Get Premium for $129/year or $29/month

Already a member? Login here

Comments & Discussion

BS
Brian Seymour ✓ Link copied!

First of all thank you for this series and your contributions to the Laravel and PHP community in general!

I'd love to see a lesson about using Laravel 12 Vue Starter Kits with the Shadcn DataTable component. I realize this series is more a of gentle introduction, but being able to search, sort and paginate (while honoring previous searches and sorts) would be awesome!

I've used the spatie/laravel-query-builder package for something similar in the past.

M
Modestas ✓ Link copied!

The problem with DataTable component is - handling all of the cases for table actions. It's definitely not about the display of the table itself, but more about the whole API code (controller).

Just because of this reason - we are for now not focusing on it as it's a huge job to properly prepare an example (otherwise, we will get a lot of questions that some basic function does not work) :)

We might revisit this at a later date, but at the moment we are prioritizing Laravel 12 updates=

BS
Brian Seymour ✓ Link copied!

Yep, totally understand! I'd love to see a dedicated tutorial on Vue + Shadcn DataTable components. Cheers :)

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.