Initial project setup with Astro framework, including configuration files, a comprehensive .gitignore, and a variety of UI components for a streaming platform. Added essential styles and layout structure, along with a README detailing project features and development guidelines.
This commit is contained in:
19
src/components/ui/ModalBody.astro
Normal file
19
src/components/ui/ModalBody.astro
Normal file
@ -0,0 +1,19 @@
|
||||
---
|
||||
export interface Props {
|
||||
class?: string;
|
||||
}
|
||||
|
||||
const { class: className = "", ...rest } = Astro.props;
|
||||
|
||||
const classes = ["modal-body", className].filter(Boolean).join(" ");
|
||||
---
|
||||
|
||||
<div class={classes} {...rest}>
|
||||
<slot />
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.modal-body {
|
||||
padding: var(--spacing-6);
|
||||
}
|
||||
</style>
|
Reference in New Issue
Block a user