Skip to content

Commit

Permalink
Opinionated reorganization/rewriting of our flex docs
Browse files Browse the repository at this point in the history
- it's one of our most used (and sometimes most misused) components, so we might as well spend more time here

- flex usage has also changed somewhat since the docs were first written (we use `gap` now instead of negative margins, and flex grid uses CSS grid instead of flexbox), so some of this copy needed updating
  • Loading branch information
cee-chen committed Nov 23, 2024
1 parent 45f3d95 commit dfb6a53
Show file tree
Hide file tree
Showing 9 changed files with 640 additions and 528 deletions.
7 changes: 1 addition & 6 deletions packages/eui/src/components/flex/flex_group.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,9 @@ export type EuiFlexGroupProps<TComponent extends ElementType = 'div'> =
* such as `'div'` or `'span'`, a React component (a function, a class,
* or an exotic component like `memo()`).
*
* `<EuiFlexGroup>` accepts and forwards all extra props to the custom
* `EuiFlexGroup` accepts and forwards all extra props to the custom
* component.
*
* @example
* // Renders a <button> element
* <EuiFlexGroup component="button">
* Submit form
* </EuiFlexGroup>
* @default "div"
*/
component?: TComponent;
Expand Down
Loading

0 comments on commit dfb6a53

Please sign in to comment.