import type { Meta, StoryObj } from "@storybook/react-vite";
import { Story } from "../story-components/Story";
import { Text } from "./Text";
import { View } from "./View";
export default {
title: "alouette/Primitives/View",
component: View,
parameters: {
componentSubtitle:
"A foundational layout component that provides a flexible container with responsive capabilities",
docs: {
description: {
component: `### Features
- Responsive layout via Tailwind breakpoint prefixes (sm:, md:, lg:, xl:)
- Flexible sizing and positioning via className
- Platform-agnostic container (RN View)
### Usage
~~~tsx
// Basic container
Content
// Responsive width
Responsive Content
~~~`,
},
},
},
} satisfies Meta;
export const ViewStory: StoryObj = {
name: "View",
render: () => (
This is a view
Width: 50px (base), 80px (md), 120px (lg)
),
};