Welcome Getting started Layout styles github-circle-black-transparent Source
Components
Badges
App bars
Bottom app bars Top app bars
Buttons
Common buttons FAB Icon buttons Segmented buttons
Cards Carousel Checkboxes Chips Date pickers Dialogs Forms Icons Lists Menus Navigation Progress indicators Pull to refresh Radios Search Selects
Sheets
Bottom sheets Side sheets
Sliders Snackbars Switches Tabs Text fields Time pickers Tooltips Utilities
home apps Buttons palette Two
Materially
github-circle-black-transparent

Pull to refresh

Pull to refresh allows you to trigger a refresh event and shows a spinner when you scroll past the top of the page on touch devices

Example

Pull down on page to see! (touch device only)
<mc-pull-to-refresh onrefresh="console.log('refresh')"></mc-pull-to-refresh>
          
const element = document.querySelector('mc-pull-to-refresh');

element.addEventListener('refresh', () => {
  // Do work
  element.resolve();
})
          
menu home apps Get started