Frame
A container component for displaying content in a frame.
<script lang="ts">
import {
Frame,
FrameDescription,
FrameFooter,
FrameHeader,
FramePanel,
FrameTitle,
} from "coss-svelte";
</script>
<Frame class="w-full">
<FrameHeader>
<FrameTitle>Section header</FrameTitle>
<FrameDescription>Brief description about the section</FrameDescription>
</FrameHeader>
<FramePanel>
<h2 class="font-semibold text-sm">Section title</h2>
<p class="text-muted-foreground text-sm">Section description</p>
</FramePanel>
<FrameFooter>
<p class="text-muted-foreground text-sm">Footer</p>
</FrameFooter>
</Frame>
Installation
Install the component package, shared coss-svelte theme, and Bits UI peer.
npm install coss-svelte @coss-svelte/theme bits-uiUsage
Import the Svelte component exports directly from the package.
import { Frame, FrameDescription, FrameFooter, FrameHeader, FramePanel, FrameTitle } from "coss-svelte";Anatomy
- Frame
- FrameDescription
- FrameFooter
- FrameHeader
- FramePanel
- FrameTitle
API Reference
Frame
A container component for displaying content in a frame.
children : Snippet<[]>Inherits from Svelte component attributes.
FrameDescription
Provides supporting copy for the parent component.
children : Snippet<[]>Inherits from Svelte component attributes.
FrameHeader
Groups heading content for the parent component.
children : Snippet<[]>Inherits from Svelte component attributes.
FramePanel
Renders the main panel surface for the parent component.
children : Snippet<[]>Inherits from Svelte component attributes.
FrameTitle
Names the parent surface or section.
children : Snippet<[]>Inherits from Svelte component attributes.
Implementation Details
- Status
- Stable
- Foundation
- native
- Category
- Content & Display
- Particles
- 4