Use this skill to create a React component under src/components that follows the Container/Presentation pattern.
Refer to this skill's bundled references for detailed rules.
references/component-architecture.md
references/typescript-and-scss-rules.md
If the /react-container-presentation-component input is incomplete, ask questions first before creating files.
/react-container-presentation-component
ui vs features classification within the Container/Presentation patternIf any of the following information is missing, ask the user using ask_user.
ui or features)ui)Question requirements:
ui, features)ui, ask whether direct usage of Mantine or other UI libraries in existing features should be replaced with the new componentsrc/components/ui/<ComponentName> or src/components/features/<ComponentName> already exists.ui: src/components/ui/<ComponentName>
features: src/components/features/<ComponentName>
ui is specified)ui is specified, before creating files, review Reclassification Rule in references/component-architecture.md.features.features, do not proceed as ui; use ask_user and confirm one of the following before continuing.
Create as features
Keep ui and move state/logic to parent or features
ui: index.tsx, index.module.scss, index.stories.tsx
features: index.tsx, use<ComponentName>.tsx, presentation.tsx, types.ts, presentation.module.scss, presentation.stories.tsx
ui)features with the new ui component.Storybook Minimum in references/component-architecture.md for story state decisions.ask_user whether to run a Storybook check (for example: "Run" / "Skip for now").npm run storybook only if the user selects "Run".ui or features.