Skip to main content

Shadcn Vue Card: Customizing Form Layout

Premium
4 min read

Currently, our form layout is straightforward - one field per line. It takes a lot of horizontal space. Why can't we fit a few fields in one row?

For that, we will use the Card component from Shadcn.


How Card is Used in Starter Kit

This lesson is an example of how to analyze already-existing starter kit components and generate ideas.

Auth screens have three layouts to choose from:

  • layouts/auth/AuthSimpleLayout.vue (the default)
  • layouts/auth/AuthCardLayout.vue
  • layouts/auth/AuthSplitLayout.vue

You can try changing it in the AuthLayout.vue file. For this example, we will use...

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

A
Alexandre ✓ Link copied!

A couple of minor typos, <CartTitle> and <CartDescription>. Shouldn't they be <CardTitle> and <CardDescription> ?

M
Modestas ✓ Link copied!

Indeed some typos, will update them as soon as possible.

Thanks!

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.