Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the difference between Vuetify card and sheet?

Vuetify docs define the sheet as follows:

The v-sheet is designed to power other paper components within Vuetify. It is meant to be used as a low level component.

card according to docs is this:

The v-card component is a versatile component that can be used for anything from a panel to a static image.

To me (not JS person) they seem very similar. Are they interchangeable? When to use one but not the other? Can you illustrate with examples?

like image 475
NarūnasK Avatar asked Jun 24 '19 19:06

NarūnasK


People also ask

What is V sheet in Vuetify?

The v-sheet component is a transformable piece of paper that provides a basic foundation for Vuetify features. For example, properties such as rounded and shaped modify the border-radius property while elevation increases/decreases box-shadow . outlined rounded shaped. Elevation. Height.

Is Vuetify easy to learn?

Unlike other frameworks, Vuetify is designed from the ground up to be easy to learn and rewarding to master with hundreds of carefully crafted components from the Material Design specification .

What does V spacer do?

v-spacer is a basic yet versatile spacing component used to distribute remaining width in-between a parents child components. When placing a single v-spacer before or after the child components, the components will push to the right and left of its container.

How do I make a Vue card in Javascript?

You can create Card with a header in a specific structure. For adding header you need to create a div element with e-card-header class added. You can include heading inside the Card header by adding a div element with e-card-header-caption class, and also content will be added by adding element with e-card-content .


1 Answers

Your question to me sounds little bit like "What is a difference between html div and section tags?"

Do you get me? I it is semantic thing.

"Low level" components tells me that you can use v-sheet in v-card but you shouldn't do the opposite.

Like putting span in p is ok, but doing the other way is a wrong practice.

Hope that helps you ;-)

like image 187
Adam Orłowski Avatar answered Sep 28 '22 20:09

Adam Orłowski