A ref for imperative actions.
It currently only supports focusVisible()
action.
If true
, the ripples will be centered.
They won't start at the cursor interaction position.
The content of the component.
Override or extend the styles applied to the component.
If true
, the ripple effect will be disabled.
⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
to highlight the element by applying separate styles with the focusVisibleClassName
.
If true
, the touch ripple effect will be disabled.
If true
, the base button will be disabled.
If given, uses a negative margin to counteract the padding on one side (this is often helpful for aligning the left or right side of the icon with content above or below, without ruining the border size and shape).
If true
, the base button will have a keyboard focus ripple.
This prop can help identify which element has keyboard focus.
The class name will be applied when the element gains the focus through keyboard interaction.
It's a polyfill for the CSS :focus-visible selector.
The rationale for using this feature is explained here.
A polyfill can be used to apply a focus-visible
class to other components
if needed.
The icon to show inside the {@link IconButton}
Callback fired when the component is focused with a keyboard.
We trigger a onFocus
callback too.
Generated using TypeDoc
Props applied to the
TouchRipple
element.