tsx
import { ModalFooter } from "@arkyn/components";
tsx
<ModalFooter><Button type="button">Cancel</Button><Button type="button">Save</Button></ModalFooter>
alignment to define how actions are distributed in the footer.tsx
<ModalFooter alignment="left"><Button type="button">Delete</Button></ModalFooter><ModalFooter alignment="center"><Button type="button">OK</Button></ModalFooter><ModalFooter alignment="between"><Button type="button">Back</Button><Button type="button">Next</Button></ModalFooter><ModalFooter alignment="around"><Button type="button">Previous</Button><Button type="button">Skip</Button><Button type="button">Finish</Button></ModalFooter>
tsx
<ModalContainer isVisible={isOpen} makeInvisible={() => setIsOpen(false)}><div><ModalHeader><h2>Confirm Delete</h2></ModalHeader><main><p>This action cannot be undone.</p></main><ModalFooter alignment="right"><Button type="button" onClick={() => setIsOpen(false)}>Cancel</Button><Button type="button" onClick={handleDelete}>Delete</Button></ModalFooter></div></ModalContainer>
alignment - "left" | "center" | "right" | "between" | "around" (default: "right")
Defines how footer content is aligned.className - string
Additional CSS classes merged with the base footer class.children - ReactNode
Footer action elements such as Buttons....rest - HTMLAttributes<HTMLElement>
Any other valid HTML attributes for the root footer element.