@uiw/codepen-require-polyfill

1.1.3 • Public • Published

Open in unpkg

# unpkg cdn
https://unpkg.com/@uiw/codepen-require-polyfill/index.js
# jsdelivr cdn
https://cdn.jsdelivr.net/npm/@uiw/codepen-require-polyfill/index.js
<!DOCTYPE html>
<html lang="en">
  <head>
    <script src="https://unpkg.com/@babel/standalone@7.17.x/babel.min.js" crossorigin></script>
    <script src="https://unpkg.com/react@16.x/umd/react.development.js" crossorigin></script>
    <script src="https://unpkg.com/react-dom@16.x/umd/react-dom.development.js" crossorigin></script>
    <script src="https://unpkg.com/@uiw/codepen-require-polyfill/index.js"></script>
    <script src="https://unpkg.com/uiw@4.x/dist/uiw.min.js"></script>
    <link rel="stylesheet" href="https://unpkg.com/uiw@4.x/dist/uiw.min.css">
  </head>
  <body>
    <div id="container" style="padding: 24px"></div>
    <script type="text/babel">
      import { Button } from 'uiw';

      const Demo = () => {
        return (
          <div>
            <Button type="primary">主要按钮</Button>
            <Button type="success">成功按钮</Button>
            <Button type="warning">警告按钮</Button>
            <Button type="danger">错误按钮</Button>
            <Button type="light">亮按钮</Button>
            <Button type="dark">暗按钮</Button>
          </div>
        );
      };

      ReactDOM.render(<Demo />, document.getElementById('container'));
    </script>
  </body>
</html>

License

Licensed under the MIT License.

Package Sidebar

Install

npm i @uiw/codepen-require-polyfill

Weekly Downloads

11

Version

1.1.3

License

MIT

Unpacked Size

45.6 kB

Total Files

7

Last publish

Collaborators

  • uiwjs
  • wcjiang
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy