Custom Segments Ionic 4

How to create a custom segment using ionic grid system