Skip to content

myNameIsDu/cornercss

Repository files navigation

Corner Css

A simple css theme, It is secondly development from Doodle CSS, I love it, But I also have some my own ideas, So I've forked it. Hope you like.

demo

Native HTML Elements

gbQDAQ

Extra Components

Modal

BvSbaN

interface CornerConfirmParamsType {
  title: string;
  content: string;
  onOk?: () => void | Promise<void>;
  onCancel?: () => void | Promise<void>;
  cancelText?: string;
  okText?: string;
}

If you don't pass okText and cancelText, It won't render footer button

9TZbY4

How to use it

npm i cornercss

Add the class corner to the top level element you want to apply the theme to:

<body class="corner">...</body>

Then import it.

import "cornercss/index.css";
import { cornerConfirm } from "cornercss";

cornerConfirm({...})

If you like CDN, This is my own, You can use it, I will publish it after every build and change.

<link rel="stylesheet" href="https://resource.sunbohao.com/cornerCss/index-2a2cb631fc.css" />
<script src="https://resource.sunbohao.com/cornerCss/index-a9b94fbf8c.js" ></script>
<!-- if you only need Html Elements, you can ignore this script -->

Please don't use it in production. Because it's a side project.