DEV Community

How to implement VUE HEADER component?

Robert on January 29, 2024

I have a small web based VUE application. It contains about five pages. Each page has a title. Currently the title is just simply a static H2 tag. ...
Collapse
 
hrubysi profile image
hrubysi

This could be done through layout, which would be responsible for rendering both page title and header.

If you would like to have more flexibility with this, you could use two components eg. StickyTitle and AppHeader and one singleton composable useStickyTitle, which would be accessed by both components.

Also consider Vue Discord community for getting help, as I believe it is more active.

Collapse
 
doogiemuc profile image
Robert

Here is a GIF of the "LargeTitleBar" animation that I am talkin about: swiftsenpai.com/development/large-...

That's what I lile to implement in WEB/CSS/VUE