Skip to content

The open alternative to Salesforce, designed for AI.

Embed MainButton and LightButton stories in docs (#26089)

Raphaël Bosieea5836bcdac
diff --git a/packages/twenty-docs/ui/components/input/light-button.mdx b/packages/twenty-docs/ui/components/input/light-button.mdx
index 5af289b33b9..1b1f1a5d26a 100644
--- a/packages/twenty-docs/ui/components/input/light-button.mdx
+++ b/packages/twenty-docs/ui/components/input/light-button.mdx
@@ -3,12 +3,20 @@ title: LightButton
description: Present lightweight actions with standard or subtle emphasis.
---
+import { StoryEmbed } from '/snippets/ui/StoryEmbed.mdx';
+
import LightButtonReference from '/snippets/ui/generated/input/light-button.mdx';
Use the shared `LightButton` component for a lightweight action. It composes
[Button](/ui/primitives/input/button) with a ghost surface, small size, regular
font weight, and no elevation.
+<StoryEmbed
+ storyId="ui-components-lightbutton--default"
+ title="LightButton example"
+ height={240}
+/>
+
## State ownership
`LightButton` uses Button's state model and adds no state of its own. Your application supplies `loading`, `disabled`, and `soon`; `emphasis` only changes appearance. See [Button's state ownership example](/ui/primitives/input/button#state-ownership) for managing an asynchronous action. There are no controlled and uncontrolled selection modes.
diff --git a/packages/twenty-docs/ui/components/input/main-button.mdx b/packages/twenty-docs/ui/components/input/main-button.mdx
index 94e2271e7a6..8eec7a32346 100644
--- a/packages/twenty-docs/ui/components/input/main-button.mdx
+++ b/packages/twenty-docs/ui/components/input/main-button.mdx
@@ -3,12 +3,20 @@ title: MainButton
description: Present prominent actions with shared design defaults.
---
+import { StoryEmbed } from '/snippets/ui/StoryEmbed.mdx';
+
import MainButtonReference from '/snippets/ui/generated/input/main-button.mdx';
Use the shared `MainButton` component for a prominent action. It composes
[Button](/ui/primitives/input/button) with a solid surface, elevation, semibold
text, and 12px horizontal padding. Its default color is neutral and size is `md`.
+<StoryEmbed
+ storyId="ui-components-mainbutton--default"
+ title="MainButton example"
+ height={240}
+/>
+
## State ownership
`MainButton` uses Button's state model and adds no state of its own. Your application supplies `loading`, `disabled`, and `soon`; there are no controlled and uncontrolled selection modes. See [Button's state ownership example](/ui/primitives/input/button#state-ownership) for managing an asynchronous action.