1.1.0 • Published 3 years ago

@pmwcs/fab v1.1.0

Weekly downloads
5
License
MIT
Repository
github
Last release
3 years ago

Fabs

A floating action button (FAB) represents the primary action of a screen.

<Fab icon="favorite" />
<Fab icon="favorite" mini />
<>
  <Fab icon="add" label="Create" />
  <Fab trailingIcon="add" label="Create" />
  <Fab label="Label only" />
</>
<>
  <Fab icon="favorite_outline" theme={['primaryBg', 'onPrimary']} />
  <Fab
    icon="delete"
    style={{ backgroundColor: 'var(--mdc-theme-error)' }}
    theme={['onError']}
  />
</>

Fab

A floating action button component

Props

NameTypeDescription
childrenReact.ReactNodeContent specified as children.
exitedundefined \| false \| trueAnimates the FAB out of view. When this class is removed, the FAB will return to view.
iconPMWCS.IconPropTThe icon for the FAB
labelReact.ReactNode &amp; anyMake the Fab extended with a label.
miniundefined \| false \| trueMake the Fab smaller.
rippleRipplePropTAdds a ripple effect to the component
trailingIconPMWCS.IconPropTA trialing icon for the FAB