How to use the @react-md/states.withStates function in @react-md/states

To help you get started, we’ve selected a few @react-md/states examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mlaursen / react-md / packages / button / src / FakeButton.tsx View on Github external
theme: PropTypes.oneOf([
        "clear",
        "primary",
        "secondary",
        "warning",
        "error",
      ]),
      themeType: PropTypes.oneOf(["flat", "outline", "contained"]),
      buttonType: PropTypes.oneOf(["text", "icon"]),
      disabled: PropTypes.bool,
      children: PropTypes.node,
    };
  }
}

const FakeButtonWithStates = withStates(FakeButton);

export default forwardRef((props, ref) => (
  
));

@react-md/states

A package for adding the different focus, hover, selected, active, etc states to elements

MIT
Latest version published 11 months ago

Package Health Score

69 / 100
Full package analysis

Popular @react-md/states functions