Skip to content

Commit

Permalink
refactor: rename Callout to Alert
Browse files Browse the repository at this point in the history
  • Loading branch information
jviide committed May 7, 2024
1 parent 8b70984 commit f71dd5f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/violet-turkeys-smile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@badrap/libapp": patch
---

rename Callout to Alert
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { UiNode, element } from "../internal.js";

type CalloutProps = {
type AlertProps = {
type?: "info" | "success" | "warning" | "error";
title?: string;
children?: UiNode;
};

export function Callout(props: CalloutProps): UiNode {
export function Alert(props: AlertProps): UiNode {
return element("ui-alert", props);
}
2 changes: 1 addition & 1 deletion src/ui/experimental/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export { Alert } from "./Alert.js";
export { Box } from "./Box.js";
export { Button } from "./Button.js";
export { Callout } from "./Callout.js";
export { Card } from "./Card.js";
export { Checkbox } from "./Checkbox.js";
export { CopyButton } from "./CopyButton.js";
Expand Down

0 comments on commit f71dd5f

Please sign in to comment.