import Uik from "../../ui-kit"
import Title from "./Title"
function Example () {
return (
<>
Click to show prompt
Uik.prompt({
title: "Information",
message: "This is a default prompt.",
actions: <>
>
})}
/>
Uik.prompt({
type: "success",
title: "Successfully completed",
message: "Your action has been successfully completed.",
actions: <>
>
})}
/>
Uik.prompt({
type: "danger",
title: "Error has occurred",
message: 'An expected error has occurred.\nPage will reload to keep everything in order.',
actions:
})}
/>
>
)
}
const code = `<>
Uik.prompt({
title: "Info",
message: "This is a default prompt.",
actions:
})}
/>
Uik.prompt({
type: "success",
title: "Successfully completed",
message: "Your action has been successfully completed.",
actions: <>
>
})}
/>
Uik.prompt({
type: "danger",
title: "Error has occurred",
message: 'An expected error has occurred.\\nPage will reload to keep everything in order.',
actions:
})}
/>
>`
export default Example