Skip to content

Commit a737739

Browse files
committed
feat: remove default variant from FlexContainer
1 parent c7332a6 commit a737739

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

workspaces/react/src/components/Container.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export interface BaseFlexContainerProps {
5757
export const FlexContainer: PolymorphicComponent<
5858
"div",
5959
BaseFlexContainerProps
60-
> = ({ Component = "div", variant = "space-between", ...props }) => (
60+
> = ({ Component = "div", variant, ...props }) => (
6161
<Component
6262
{...props}
6363
className={css(

workspaces/website/src/app/docs/layout.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export default function DocsPage({
1919
<FlexContainer variant="center">
2020
<FlexItem flex="custom" flexAmount="10%">
2121
<FlexContainer
22+
variant="space-between"
2223
style={{
2324
flexDirection: "column",
2425
gap: "var(--shale-v1-font--2)",

workspaces/website/src/components/ComponentDoc/ComponentDoc.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ export const ComponentDoc: React.FC<ComponentDocProps> = ({ component }) => {
7070
<FlexItem Component="section">
7171
<H3>Examples</H3>
7272
<FlexContainer
73+
variant="space-between"
7374
style={{
7475
display: "flex",
7576
flexDirection: "column",
@@ -146,6 +147,7 @@ export interface ComponentDocsProps {
146147
export const ComponentDocs: React.FC<ComponentDocsProps> = ({ pathname }) => {
147148
return (
148149
<FlexContainer
150+
variant="space-between"
149151
style={{
150152
display: "flex",
151153
flexDirection: "column",

0 commit comments

Comments
 (0)