diff --git a/src/lib/sections/ContentSection/ContentSection.stories.tsx b/src/lib/sections/ContentSection/ContentSection.stories.tsx index cbe4470..26045d2 100644 --- a/src/lib/sections/ContentSection/ContentSection.stories.tsx +++ b/src/lib/sections/ContentSection/ContentSection.stories.tsx @@ -53,5 +53,6 @@ export const WithForm = { ), + variant: "narrow", }, }; diff --git a/src/lib/sections/ContentSection/ContentSection.tsx b/src/lib/sections/ContentSection/ContentSection.tsx index e779758..dc4c81c 100644 --- a/src/lib/sections/ContentSection/ContentSection.tsx +++ b/src/lib/sections/ContentSection/ContentSection.tsx @@ -1,6 +1,6 @@ import * as React from "react"; -import { Col } from "@canonical/react-components"; +import { Col, Row } from "@canonical/react-components"; import classNames from "classnames"; import "./ContentSection.scss"; @@ -29,12 +29,18 @@ export const ContentSection = ({ children, className, as, + variant = "wide", ...props -}: ContentSectionProps) => { +}: ContentSectionProps & { + variant?: "narrow" | "wide"; +}) => { const Component = as || "section"; + const sectionClass = classNames("content-section", className); return ( - - {children} + + + {children} + ); };