# View ## Examples ### Default ```html This is main content in a view container with size ${args.size} and margin ${args.margin} The view component manages content width, spacing between elements, and vertical margins ``` ### WithAside ```html This is the aside content Main content area Another content block in main area with spacing controlled by the view's spacing property ``` ### SizeVariations ```html Size: xxs (440px) Size: xs (720px) Size: s (960px) Size: m (1200px) Size: full (100%) ``` ### MarginVariations ```html
Margin: s (small vertical margin) Margin: m (medium vertical margin) Margin: l (large vertical margin)
``` ## Usage The `View` component provides a responsive layout for application views with optional aside and main content slots. It creates a responsive grid layout that can include an optional sidebar (aside) and main content area. The component automatically handles responsive behavior, switching from a two-column layout on desktop to a single-column layout on mobile devices. ### Typical usage pattern - Use as the main content wrapper within the default slot of `m-app-layout` - Place page content (sections, forms, lists) in the default slot - Place navigation, filters, or secondary content in the aside slot - Use different size variants (xxs, xs, s, m, full) to control content width - Use margin variants (s, m, l) to control vertical spacing ```html

Add main elements into default slot

```