Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] Enforce component style rules for Tree View #14963

Merged
merged 5 commits into from
Oct 17, 2024

Conversation

samuelsycamore
Copy link
Contributor

@samuelsycamore samuelsycamore commented Oct 14, 2024

Part of https://www.notion.so/mui-org/Audit-and-edit-MUI-X-docs-10dcbfe7b6608028af52f73cae5b245a

When describing the MUI X product, Tree View (Rich Tree View, Simple Tree View, Tree Item, etc.) components should almost always be capitalized like proper nouns, with a space between each word and no backticks.

When to use component case:

  • When differentiating between similar components that may share some or all of their names in common
    • So "Tree Item components" generally but <TreeItem /> or <TreeItem2 /> specifically
  • When differentiating between Community / Pro / Premium components
    • So "Tree View Pro components" generally but <RichTreeViewPro /> specifically

@samuelsycamore samuelsycamore added docs Improvements or additions to the documentation component: tree view TreeView, TreeItem. This is the name of the generic UI component, not the React module! labels Oct 14, 2024
@samuelsycamore samuelsycamore marked this pull request as ready for review October 14, 2024 17:42
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
packages/x-tree-view/src/TreeItem/TreeItem.types.ts Outdated Show resolved Hide resolved
packages/x-tree-view/src/TreeItem2/TreeItem2.types.ts Outdated Show resolved Hide resolved
packages/x-tree-view/src/internals/models/treeView.ts Outdated Show resolved Hide resolved
packages/x-tree-view/src/internals/models/treeView.ts Outdated Show resolved Hide resolved
Signed-off-by: Sycamore <71297412+samuelsycamore@users.noreply.github.com>
Copy link
Member

@flaviendelangle flaviendelangle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great 🥳

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: tree view TreeView, TreeItem. This is the name of the generic UI component, not the React module! docs Improvements or additions to the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants