Ionic 6 Full Starter App
IonicThemesBuy NOWLive Preview
  • What is Ionic 6 Full Starter App?
  • About this Ionic template
  • Template versions
  • Set up the development environment
  • Running the Ionic app
  • How to use this template?
  • Ionic Capacitor
  • Ionic Code Structure
  • Ionic Data Integration
  • Theming
  • Ionic Progressive Web App
  • Ionic Navigation
  • Ionic Server Side Rendering (SSR)
  • Ionic Splash Screens and Icons
  • App Shell
    • Image Shell
    • Text Shell
    • Aspect Ratio
  • Ionic Custom Components
    • Checkbox Wrapper
    • Countdown timer
    • Ionic Show/Hide Password
  • Ionic Walkthrough (or tutorial)
  • Categories
  • Ionic Firebase Integration
    • Firebase Authentication
    • Firebase CRUD
    • Firebase Hosting
    • Push Notifications
  • Google Maps & Geolocation
  • Ionic Video Playlist
  • Ionic Multi Language
  • Getting Started
  • Ionic Authentication
  • Ionic Side Menu
  • Ionic Profile
  • Contact Card
  • Social Sharing
  • Ionic Notifications
  • Forms and Validations
  • Filters
  • FAQs
  • Common Errors and Solutions
  • Glossary
  • Upcoming features
  • 🧐Changelog
  • Reviews / Testimonials ⭐️⭐️⭐️⭐️⭐️
Powered by GitBook
On this page

Was this helpful?

  1. App Shell

Text Shell

Text Shell component is useful when you want to show a loading indicator while fetching text data from the server.

PreviousImage ShellNextAspect Ratio

Last updated 6 years ago

Was this helpful?

The <app-text-shell> basically works by wrapping the text node with a loading indicator while you are fetching data.

While there are empty values the component adds some 'loading' styles and animations.

You can reset the 'loading' state by re-assigning the data to the empty/null value.

Empty data will cause the shell to never quit its 'loading' state.

The <app-text-shell> element can be used alone or wrapped with a text tag (h1, h2, h3, p, etc).

In case you wrap it with a heading element, we included basic styles (src/theme/shell-defaults.scss) to match the different heading styles (mainly line-height associated to each heading).

:root {
  h1 > app-text-shell {
    --text-shell-line-height: 32px;
    --text-shell-line-color: #CCC;
  }
}

By matching the line-height of the text-shell with the line-height of the wrapper element, we avoid page height bumps after the data gets loaded into the shells.

See the to learn how to use and customize the Text Shell. There are lots of examples to help you using this component.

live Showcase