- SwipeAction(props): ReactNode
Parameters
props: {
children: ReactNode;
closeOnAction?: boolean;
closeOnTouchOutside?: boolean;
leftActions?: Action[];
onAction?: ((action, e) => void);
onActionsReveal?: ((side) => void);
rightActions?: Action[];
stopPropagation?: "click"[];
} & {
className?: string;
style?: CSSProperties & Partial<Record<"--background", string>>;
tabIndex?: number;
} & AriaAttributes & RefAttributes<SwipeActionRef>
Returns ReactNode
Properties
Readonly $$typeof
$$typeof: symbol
Optional defaultProps
defaultProps?: Partial<{ children: ReactNode; closeOnAction?: boolean; closeOnTouchOutside?: boolean; leftActions?: Action[]; onAction?: ((action,
e) => void); onActionsReveal?: ((side) => void); rightActions?: Action[]; stopPropagation?: "click"[]; } & { className?: string; style?: CSSProperties & Partial<Record<"--background", string>>; tabIndex?: number; } & AriaAttributes & RefAttributes<SwipeActionRef>> Optional displayName
displayName?: string
Optional propTypes
propTypes?: WeakValidationMap<{ children: ReactNode; closeOnAction?: boolean; closeOnTouchOutside?: boolean; leftActions?: Action[]; onAction?: ((action,
e) => void); onActionsReveal?: ((side) => void); rightActions?: Action[]; stopPropagation?: "click"[]; } & { className?: string; style?: CSSProperties & Partial<Record<"--background", string>>; tabIndex?: number; } & AriaAttributes & RefAttributes<SwipeActionRef>>
Used in debugging messages. You might want to set it explicitly if you want to display a different name for debugging purposes.