0.0.13 • Published 10 months ago

@fluentliteui/dialog v0.0.13

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

@fluentliteui/dialog

install

yarn add @fluentliteui/dialog

usage

import { dialog } from "@fluentliteui/dialog";
import "@fluentliteui/dialog/dist/index.css";

function App() {
    const [showDialog, setShowDialog] = useState<boolean>(true);
    return <>
        <Button onClick={() => {
          setShowDialog(true);
        }}>open</Button>
        <Dialog style={{ width: "300px" }} 
        show={showDialog}
        label="hello"
        showCancel={false}
        body={<p>this is a demo</p>}
        closeButtonColor="#f00"
        onOK=()=>{}
        />
    <>
}
0.0.13

10 months ago

0.0.12

11 months ago

0.0.11

11 months ago

0.0.1

11 months ago