feat(build): migrate from Prettier to Oxfmt for performant code formatting (#42434)

This commit is contained in:
Đỗ Trọng Hải
2026-08-04 00:27:05 +07:00
committed by GitHub
parent 10f7927603
commit e4ef84ca72
2328 changed files with 90728 additions and 32682 deletions

View File

@@ -33,23 +33,36 @@ ButtonGroup is a container that groups multiple Button components together with
<StoryWithControls
component="ButtonGroup"
props={{
expand: false
}}
expand: false,
}}
controls={[
{
name: "expand",
label: "Expand",
type: "boolean",
description: "When true, buttons expand to fill available width."
},
{
name: "className",
label: "Class Name",
type: "text",
description: "CSS class name for custom styling."
}
]}
sampleChildren={[{"component":"Button","props":{"buttonStyle":"tertiary","children":"Button 1"}},{"component":"Button","props":{"buttonStyle":"tertiary","children":"Button 2"}},{"component":"Button","props":{"buttonStyle":"tertiary","children":"Button 3"}}]}
{
name: 'expand',
label: 'Expand',
type: 'boolean',
description: 'When true, buttons expand to fill available width.',
},
{
name: 'className',
label: 'Class Name',
type: 'text',
description: 'CSS class name for custom styling.',
},
]}
sampleChildren={[
{
component: 'Button',
props: { buttonStyle: 'tertiary', children: 'Button 1' },
},
{
component: 'Button',
props: { buttonStyle: 'tertiary', children: 'Button 2' },
},
{
component: 'Button',
props: { buttonStyle: 'tertiary', children: 'Button 3' },
},
]}
/>
## Try It
@@ -70,8 +83,8 @@ function Demo() {
## Props
| Prop | Type | Default | Description |
|------|------|---------|-------------|
| Prop | Type | Default | Description |
| -------- | --------- | ------- | -------------------------------------------------- |
| `expand` | `boolean` | `false` | When true, buttons expand to fill available width. |
## Import