|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en" dir="ltr"> |
| 3 | + <head> |
| 4 | + <meta charset="UTF-8" /> |
| 5 | + <title>Tab Bar - Shape</title> |
| 6 | + <meta |
| 7 | + name="viewport" |
| 8 | + content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover" |
| 9 | + /> |
| 10 | + <script src="../../../../../scripts/testing/scripts.js"></script> |
| 11 | + <script nomodule src="../../../../../dist/ionic/ionic.js"></script> |
| 12 | + <script type="module" src="../../../../../dist/ionic/ionic.esm.js"></script> |
| 13 | + <link rel="stylesheet" href="../../../../../css/ionic.bundle.css" /> |
| 14 | + <link rel="stylesheet" href="../../../../../scripts/testing/styles.css" /> |
| 15 | + </head> |
| 16 | + |
| 17 | + <body> |
| 18 | + <ion-app> |
| 19 | + <ion-content> |
| 20 | + <h2>Default</h2> |
| 21 | + <ion-tab-bar selected-tab="1" expand="compact"> |
| 22 | + <ion-tab-button tab="1"> |
| 23 | + <ion-icon name="triangle-outline"></ion-icon> |
| 24 | + <ion-label>Label</ion-label> |
| 25 | + </ion-tab-button> |
| 26 | + |
| 27 | + <ion-tab-button tab="2"> |
| 28 | + <ion-icon name="triangle-outline"></ion-icon> |
| 29 | + <ion-label>Label</ion-label> |
| 30 | + </ion-tab-button> |
| 31 | + |
| 32 | + <ion-tab-button tab="3" class="ion-focused"> |
| 33 | + <ion-icon name="triangle-outline"></ion-icon> |
| 34 | + <ion-label>Label</ion-label> |
| 35 | + </ion-tab-button> |
| 36 | + </ion-tab-bar> |
| 37 | + |
| 38 | + <h2>Soft</h2> |
| 39 | + <ion-tab-bar selected-tab="1" expand="compact" shape="soft"> |
| 40 | + <ion-tab-button tab="1"> |
| 41 | + <ion-icon name="triangle-outline"></ion-icon> |
| 42 | + <ion-label>Label</ion-label> |
| 43 | + </ion-tab-button> |
| 44 | + |
| 45 | + <ion-tab-button tab="2"> |
| 46 | + <ion-icon name="triangle-outline"></ion-icon> |
| 47 | + <ion-label>Label</ion-label> |
| 48 | + </ion-tab-button> |
| 49 | + |
| 50 | + <ion-tab-button tab="3" class="ion-focused"> |
| 51 | + <ion-icon name="triangle-outline"></ion-icon> |
| 52 | + <ion-label>Label</ion-label> |
| 53 | + </ion-tab-button> |
| 54 | + </ion-tab-bar> |
| 55 | + |
| 56 | + <h2>Round</h2> |
| 57 | + <ion-tab-bar selected-tab="1" expand="compact" shape="round"> |
| 58 | + <ion-tab-button tab="1"> |
| 59 | + <ion-icon name="triangle-outline"></ion-icon> |
| 60 | + <ion-label>Label</ion-label> |
| 61 | + </ion-tab-button> |
| 62 | + |
| 63 | + <ion-tab-button tab="2"> |
| 64 | + <ion-icon name="triangle-outline"></ion-icon> |
| 65 | + <ion-label>Label</ion-label> |
| 66 | + </ion-tab-button> |
| 67 | + |
| 68 | + <ion-tab-button tab="3" class="ion-focused"> |
| 69 | + <ion-icon name="triangle-outline"></ion-icon> |
| 70 | + <ion-label>Label</ion-label> |
| 71 | + </ion-tab-button> |
| 72 | + </ion-tab-bar> |
| 73 | + |
| 74 | + <h2>Rectangular</h2> |
| 75 | + <ion-tab-bar selected-tab="1" expand="compact" shape="rectangular"> |
| 76 | + <ion-tab-button tab="1"> |
| 77 | + <ion-icon name="triangle-outline"></ion-icon> |
| 78 | + <ion-label>Label</ion-label> |
| 79 | + </ion-tab-button> |
| 80 | + |
| 81 | + <ion-tab-button tab="2"> |
| 82 | + <ion-icon name="triangle-outline"></ion-icon> |
| 83 | + <ion-label>Label</ion-label> |
| 84 | + </ion-tab-button> |
| 85 | + |
| 86 | + <ion-tab-button tab="3" class="ion-focused"> |
| 87 | + <ion-icon name="triangle-outline"></ion-icon> |
| 88 | + <ion-label>Label</ion-label> |
| 89 | + </ion-tab-button> |
| 90 | + </ion-tab-bar> |
| 91 | + </ion-content> |
| 92 | + </ion-app> |
| 93 | + |
| 94 | + <style> |
| 95 | + ion-content { |
| 96 | + --background: #f6f6f6; |
| 97 | + } |
| 98 | + |
| 99 | + .ionic ion-tab-bar { |
| 100 | + position: static; |
| 101 | + } |
| 102 | + </style> |
| 103 | + </body> |
| 104 | +</html> |
0 commit comments