I need to create horizontal and vertical tabs using Angular material.Thanks in advance.
            Asked
            
        
        
            Active
            
        
            Viewed 1,210 times
        
    0
            
            
        - 
                    screenshot is missing. – TheViralGriffin Dec 19 '19 at 14:06
- 
                    Sorry. I can't upload screenshot. – Athira Soman Dec 20 '19 at 05:20
- 
                    you cannot simply create vertical tabs need to do many customisation for that. https://stackoverflow.com/questions/49809702/vertical-tabs-with-angular-material – Akhi Akl Dec 31 '19 at 05:40
1 Answers
0
            
            
        I use the following SCSS to display a mat-tab-group as vertical by applying the vertical-tabs class. You will probably want to alter it somewhat but it should be a good starting point.
mat-tab-group.vertical-tabs {
        flex-direction: row !important;
        .mat-tab-labels {
            flex-direction: column !important;
        }
        .mat-tab-label {
            border: none;
            height: auto !important;
            padding: 10px !important;
            min-width: 0px !important;
            justify-content: left !important;
            opacity: 1;
            border-bottom: 1px solid #eee;
        }
        .mat-tab-body-wrapper {
            flex: 1;
        }
        .mat-tab-header {
            border-bottom: none !important;
            border-right: 1px solid #eee;
        }
        mat-ink-bar {
            display: none;
        }
    }
 
    
    
        robbieAreBest
        
- 1,601
- 14
- 16
