diff --git a/canon-docs/src/app/(docs)/components/button/page.mdx b/canon-docs/src/app/(docs)/components/button/page.mdx
index e0b0a89f31..b1276157b6 100644
--- a/canon-docs/src/app/(docs)/components/button/page.mdx
+++ b/canon-docs/src/app/(docs)/components/button/page.mdx
@@ -141,9 +141,9 @@ Here's a view when buttons are full width.
py={4}
open
preview={}
- code={`
+ code={`
-`}
+`}
/>
### Disabled
diff --git a/canon-docs/src/app/(docs)/components/stack/page.mdx b/canon-docs/src/app/(docs)/components/flex/page.mdx
similarity index 64%
rename from canon-docs/src/app/(docs)/components/stack/page.mdx
rename to canon-docs/src/app/(docs)/components/flex/page.mdx
index 7ef25c00b7..9f2b0bb6ee 100644
--- a/canon-docs/src/app/(docs)/components/stack/page.mdx
+++ b/canon-docs/src/app/(docs)/components/flex/page.mdx
@@ -3,29 +3,29 @@ import { spacePropsList } from '@/utils/spaceProps';
import { Tabs } from '@/components/Tabs';
import { CodeBlock } from '@/components/CodeBlock';
import {
- stackFAQ1,
- stackSimple,
- stackResponsive,
- stackAlign,
+ flexFAQ1,
+ flexSimple,
+ flexResponsive,
+ flexAlign,
} from '@/snippets/_snippets';
import { Snippet } from '@/components/Snippet';
-import { StackPreview } from '@/snippets/stack';
+import { FlexPreview } from '@/snippets/flex';
-# Stack
+# Flex
-This is the stack container component. It will help to define the number of
+This is the flex container component. It will help to define the number of
columns that will be used in the grid. You can also define the gap between the
columns. All values are responsive.
}
- code={`
+ preview={}
+ code={`
-`}
+`}
/>
@@ -34,9 +34,9 @@ columns. All values are responsive.
+
`}
/>
@@ -73,29 +73,29 @@ The grid component also accepts all the spacing props from the Box component.
### Can I stack horizontally?
-The Stack component only allows for stacking elements vertically. If you want
+The Flex component only allows for stacking elements vertically. If you want
to create a column layout, please use the Grid component.
-
+
## Examples
### Simple
-A simple example of how to use the Stack component.
+A simple example of how to use the Flex component.
-
+
### Responsive
-The Stack component also supports responsive values, making it easy to create
+The Flex component also supports responsive values, making it easy to create
responsive designs.
-
+
### Align
-The Stack component also supports responsive alignment, making it easy to
+The Flex component also supports responsive alignment, making it easy to
create responsive designs.
-
+
diff --git a/canon-docs/src/app/(docs)/components/heading/page.mdx b/canon-docs/src/app/(docs)/components/heading/page.mdx
index e843e131ce..f2fbe0e929 100644
--- a/canon-docs/src/app/(docs)/components/heading/page.mdx
+++ b/canon-docs/src/app/(docs)/components/heading/page.mdx
@@ -75,13 +75,13 @@ appearance of the heading.
py={2}
open
preview={}
- code={`
+ code={`DisplayTitle 1Title 2Title 3Title 4
-`}
+`}
/>
### Responsive
diff --git a/canon-docs/src/app/(docs)/components/inline/page.mdx b/canon-docs/src/app/(docs)/components/inline/page.mdx
deleted file mode 100644
index ac4d7e0401..0000000000
--- a/canon-docs/src/app/(docs)/components/inline/page.mdx
+++ /dev/null
@@ -1,118 +0,0 @@
-import { CodeBlock } from '@/components/CodeBlock';
-import { PropsTable } from '@/components/PropsTable';
-import { spacePropsList } from '@/utils/spaceProps';
-import { Tabs } from '@/components/Tabs';
-import { Snippet } from '@/components/Snippet';
-import { InlinePreview } from '@/snippets/inline';
-
-# Inline
-
-The Inline component is used to create a horizontal layout of elements.
-
-}
- code={`
-
-
-
-`}
-/>
-
-
-
- Usage
-
-
-
-`}
- />
-
-
-
-## API reference
-
-
-
-The grid component also accepts all the spacing props from the Box component.
-
-
-
-## Examples
-
-### Simple
-
-A simple example of how to use the Inline component.
-
-
- Hello World
- Hello World
- Hello World
-`}
-/>
-
-### Responsive
-
-The Inline component also supports responsive values, making it easy to create
-responsive designs.
-
-
- Hello World
- Hello World
- Hello World
-`}
-/>
-
-### Align
-
-The Inline component also supports responsive alignment, making it easy to
-create responsive designs.
-
-
- Hello World
- Hello World
- Hello World
-`}
-/>
-
-### Align vertically
-
-The Inline component also supports responsive vertical alignment, making it
-easy to create responsive designs.
-
-
- Hello World
- Hello World
- Hello World
-`}
-/>
diff --git a/canon-docs/src/app/(docs)/components/text/page.mdx b/canon-docs/src/app/(docs)/components/text/page.mdx
index 6d96fc5da3..450de0f79d 100644
--- a/canon-docs/src/app/(docs)/components/text/page.mdx
+++ b/canon-docs/src/app/(docs)/components/text/page.mdx
@@ -83,7 +83,7 @@ appearance of the text.
}
- code={`
+ code={`
A man looks at a painting in a museum and says, “Brothers and sisters I
have none, but that man's father is my father's son.” Who is
@@ -104,7 +104,7 @@ appearance of the text.
have none, but that man's father is my father's son.” Who is
in the painting?
- `}
+ `}
/>
### All weights
@@ -115,7 +115,7 @@ appearance of the text.
}
- code={`
+ code={`
A man looks at a painting in a museum and says, “Brothers and sisters I
have none, but that man's father is my father's son.” Who is
@@ -126,7 +126,7 @@ appearance of the text.
have none, but that man's father is my father's son.” Who is
in the painting?
- `}
+ `}
/>
### Responsive
diff --git a/canon-docs/src/app/(docs)/page.mdx b/canon-docs/src/app/(docs)/page.mdx
index 09d4d83ea3..35fbc482b2 100644
--- a/canon-docs/src/app/(docs)/page.mdx
+++ b/canon-docs/src/app/(docs)/page.mdx
@@ -45,12 +45,12 @@ import { ThemeProvider } from '@backstage/canon';
Now you can start building your plugin using the new design system.
```tsx
-import { Stack, Button } from '@backstage/canon';
+import { Flex, Button, Text } from '@backstage/canon';
-
+Hello World
-;
+;
```
## Roadmap
diff --git a/canon-docs/src/app/(docs)/theme/layout/page.mdx b/canon-docs/src/app/(docs)/theme/layout/page.mdx
index dc3a5d4585..b069082b04 100644
--- a/canon-docs/src/app/(docs)/theme/layout/page.mdx
+++ b/canon-docs/src/app/(docs)/theme/layout/page.mdx
@@ -22,13 +22,13 @@ provide are the ones coming from the theme.
+ code={`Hello WorldProject 1Project 2
-
+
`}
/>
diff --git a/canon-docs/src/app/(docs)/theme/typography/page.mdx b/canon-docs/src/app/(docs)/theme/typography/page.mdx
index 86be4d2e19..74b3144ef6 100644
--- a/canon-docs/src/app/(docs)/theme/typography/page.mdx
+++ b/canon-docs/src/app/(docs)/theme/typography/page.mdx
@@ -21,13 +21,13 @@ component](?path=/docs/components-heading--docs).
py={2}
open
preview={}
- code={`
+ code={`DisplayTitle 1Title 2Title 3Title 4
-`}
+`}
/>
## Text
@@ -41,7 +41,7 @@ page.
}
- code={`
+ code={`
A man looks at a painting in a museum and says, “Brothers and sisters I
have none, but that man's father is my father's son.” Who is
@@ -62,5 +62,5 @@ page.
have none, but that man's father is my father's son.” Who is
in the painting?
- `}
+ `}
/>
diff --git a/canon-docs/src/app/(playground)/playground/page.tsx b/canon-docs/src/app/(playground)/playground/page.tsx
index 7bbdefcc95..354f07bb25 100644
--- a/canon-docs/src/app/(playground)/playground/page.tsx
+++ b/canon-docs/src/app/(playground)/playground/page.tsx
@@ -1,7 +1,7 @@
'use client';
import { ReactNode } from 'react';
-import { Grid, Stack, Text } from '../../../../../packages/canon';
+import { Grid, Flex, Text } from '../../../../../packages/canon';
import { screenSizes } from '@/utils/data';
import { Frame } from '@/components/Frame';
import { usePlayground } from '@/utils/playground-context';
@@ -53,7 +53,7 @@ const Content = () => {
const { selectedComponents } = usePlayground();
return (
-
+
{selectedComponents.find(c => c === 'button') && (
} title="Button" />
)}
@@ -69,17 +69,17 @@ const Content = () => {
{/* {selectedComponents.find(c => c === 'input') && (
} title="Input" />
)} */}
-
+
);
};
const Line = ({ content, title }: { content: ReactNode; title: string }) => {
return (
-
-
+
+ {title}
- {content}
+ {content}
);
};
diff --git a/canon-docs/src/components/LayoutComponents/LayoutComponents.tsx b/canon-docs/src/components/LayoutComponents/LayoutComponents.tsx
index 7262b837b3..05238717f1 100644
--- a/canon-docs/src/components/LayoutComponents/LayoutComponents.tsx
+++ b/canon-docs/src/components/LayoutComponents/LayoutComponents.tsx
@@ -1,6 +1,6 @@
import React from 'react';
import { BoxSvg } from './svgs/box';
-import { StackSvg } from './svgs/stack';
+import { FlexSvg } from './svgs/flex';
import { GridSvg } from './svgs/grid';
import { InlineSvg } from './svgs/inline';
import { ContainerSvg } from './svgs/container';
@@ -20,10 +20,10 @@ export const LayoutComponents = () => {
-
-
+
+
-
Stack
+
Flex
Arrange your components vertically
diff --git a/canon-docs/src/components/LayoutComponents/svgs/stack.tsx b/canon-docs/src/components/LayoutComponents/svgs/flex.tsx
similarity index 98%
rename from canon-docs/src/components/LayoutComponents/svgs/stack.tsx
rename to canon-docs/src/components/LayoutComponents/svgs/flex.tsx
index c54cba57cf..7bc3466ce8 100644
--- a/canon-docs/src/components/LayoutComponents/svgs/stack.tsx
+++ b/canon-docs/src/components/LayoutComponents/svgs/flex.tsx
@@ -15,7 +15,7 @@
*/
import React from 'react';
-export const StackSvg = () => {
+export const FlexSvg = () => {
return (