Skip to content

[docs] Remove "Unstyled" section from component docs #46272

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion docs/data/joy/components/accordion/accordion.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ title: React Accordion component
components: Accordion, AccordionDetails, AccordionGroup, AccordionSummary
githubLabel: 'component: accordion'
waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/accordion/
unstyled: https://base-ui.com/react/components/accordion
---

# Accordion
Expand Down
1 change: 0 additions & 1 deletion docs/data/joy/components/checkbox/checkbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ title: React Checkbox component
components: Checkbox
githubLabel: 'component: checkbox'
waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/checkbox/
unstyled: https://base-ui.com/react/components/checkbox
---

# Checkbox
Expand Down
1 change: 0 additions & 1 deletion docs/data/joy/components/divider/divider.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ productId: joy-ui
title: React Divider component
components: Divider
githubLabel: 'component: divider'
unstyled: https://base-ui.com/react/components/separator
---

# Divider
Expand Down
1 change: 0 additions & 1 deletion docs/data/joy/components/input/input.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
productId: joy-ui
title: React Input component
components: FormControl, FormHelperText, FormLabel, Input
unstyled: https://base-ui.com/react/components/input
---

# Input
Expand Down
1 change: 0 additions & 1 deletion docs/data/joy/components/menu/menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ title: React Menu component
components: Menu, MenuItem, MenuList, MenuButton
githubLabel: 'component: menu'
waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/
unstyled: https://base-ui.com/react/components/menu
---

# Menu
Expand Down
1 change: 0 additions & 1 deletion docs/data/joy/components/modal/modal.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ title: React Modal component
components: Modal, ModalClose, ModalDialog, ModalOverflow, DialogTitle, DialogContent, DialogActions
githubLabel: 'component: modal'
waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/
unstyled: https://base-ui.com/react/components/dialog
---

# Modal
Expand Down
1 change: 0 additions & 1 deletion docs/data/joy/components/radio-button/radio-button.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ title: React Radio Button component
components: Radio, RadioGroup
githubLabel: 'component: radio'
waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/radio/
unstyled: https://base-ui.com/react/components/radio
---

# Radio
Expand Down
1 change: 0 additions & 1 deletion docs/data/joy/components/select/select.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ title: React Select component
components: Select, Option
githubLabel: 'component: select'
waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/
unstyled: https://base-ui.com/react/components/select
---

# Select
Expand Down
1 change: 0 additions & 1 deletion docs/data/joy/components/slider/slider.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ productId: joy-ui
title: React Slider component
components: Slider
githubLabel: 'component: slider'
unstyled: https://base-ui.com/react/components/slider
---

# Slider
Expand Down
1 change: 0 additions & 1 deletion docs/data/joy/components/switch/switch.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ productId: joy-ui
title: React Switch component
components: Switch
githubLabel: 'component: switch'
unstyled: https://base-ui.com/react/components/switch
---

# Switch
Expand Down
1 change: 0 additions & 1 deletion docs/data/joy/components/tabs/tabs.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ title: React Tabs component
components: Tab, TabList, TabPanel, Tabs
githubLabel: 'component: tabs'
waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/tabs/
unstyled: https://base-ui.com/react/components/menu
---

# Tabs
Expand Down
1 change: 0 additions & 1 deletion docs/data/joy/components/text-field/text-field.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
productId: joy-ui
title: React Text Field component
githubLabel: 'component: text field'
unstyled: https://base-ui.com/react/components/field
---

# Text Field
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ productId: joy-ui
title: React Toggle Button Group component
githubLabel: 'component: toggle button'
components: ToggleButtonGroup, Button, IconButton
unstyled: https://base-ui.com/react/components/toggle-group
---

# Toggle Button Group
Expand Down
1 change: 0 additions & 1 deletion docs/data/joy/components/tooltip/tooltip.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ title: React Tooltip component
components: Tooltip
githubLabel: 'component: tooltip'
waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/tooltip/
unstyled: https://base-ui.com/react/components/tooltip
---

# Tooltip
Expand Down
1 change: 0 additions & 1 deletion docs/data/material/components/badges/badges.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ productId: material-ui
title: React Badge component
components: Badge
githubLabel: 'component: badge'
unstyled: /base-ui/react-badge/
githubSource: packages/mui-material/src/Badge
---

Expand Down
1 change: 0 additions & 1 deletion docs/data/material/components/buttons/buttons.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ components: Button, IconButton, ButtonBase
materialDesign: https://m2.material.io/components/buttons
githubLabel: 'component: button'
waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/button/
unstyled: /base-ui/react-button/
githubSource: packages/mui-material/src/Button
---

Expand Down
1 change: 0 additions & 1 deletion docs/data/material/components/menus/menus.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ components: Menu, MenuItem, MenuList, ClickAwayListener, Popover, Popper
githubLabel: 'component: menu'
materialDesign: https://m2.material.io/components/menus
waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/
unstyled: /base-ui/react-menu/
githubSource: packages/mui-material/src/Menu
---

Expand Down
1 change: 0 additions & 1 deletion docs/data/material/components/modal/modal.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ title: React Modal component
components: Modal
githubLabel: 'component: modal'
waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/
unstyled: /base-ui/react-modal/
githubSource: packages/mui-material/src/Modal
---

Expand Down
1 change: 0 additions & 1 deletion docs/data/material/components/popper/popper.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ productId: material-ui
title: React Popper component
components: Popper
githubLabel: 'component: Popper'
unstyled: /base-ui/react-popper/
githubSource: packages/mui-material/src/Popper
---

Expand Down
1 change: 0 additions & 1 deletion docs/data/material/components/selects/selects.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ components: Select, NativeSelect
githubLabel: 'component: select'
materialDesign: https://m2.material.io/components/menus#exposed-dropdown-menu
waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/
unstyled: /base-ui/react-select/
githubSource: packages/mui-material/src/Select
---

Expand Down
1 change: 0 additions & 1 deletion docs/data/material/components/slider/slider.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ components: Slider
githubLabel: 'component: slider'
materialDesign: https://m2.material.io/components/sliders
waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/slider-multithumb/
unstyled: /base-ui/react-slider/
githubSource: packages/mui-material/src/Slider
---

Expand Down
1 change: 0 additions & 1 deletion docs/data/material/components/switches/switches.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ title: React Switch component
components: Switch, FormControl, FormGroup, FormLabel, FormControlLabel
githubLabel: 'component: switch'
materialDesign: https://m2.material.io/components/selection-controls#switches
unstyled: /base-ui/react-switch/
githubSource: packages/mui-material/src/Switch
---

Expand Down
1 change: 0 additions & 1 deletion docs/data/material/components/tabs/tabs.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ components: Tabs, Tab, TabScrollButton, TabContext, TabList, TabPanel
githubLabel: 'component: tabs'
materialDesign: https://m2.material.io/components/tabs
waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/tabs/
unstyled: /base-ui/react-tabs/
githubSource: packages/mui-material/src/Tabs
---

Expand Down
1 change: 0 additions & 1 deletion docs/data/material/components/text-fields/text-fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ title: React Text Field component
components: FilledInput, FormControl, FormHelperText, Input, InputAdornment, InputBase, InputLabel, OutlinedInput, TextField
githubLabel: 'component: text field'
materialDesign: https://m2.material.io/components/text-fields
unstyled: /base-ui/react-input/
githubSource: packages/mui-material/src/TextField
---

Expand Down
9 changes: 0 additions & 9 deletions packages/markdown/prepareMarkdown.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,6 @@ function prepareMarkdown(config) {

const contents = getContents(markdown);

if (headers.unstyled) {
contents.push(`
## Unstyled

Use the [Base UI ${markdownH1}](${headers.unstyled}) for complete ownership of the component's design, with no Material UI or Joy UI styles to override.
This unstyled version of the component is the ideal choice for heavy customization with a smaller bundle size.
`);
}

if (headers.components.length > 0 && headers.productId !== 'base-ui') {
contents.push(`
## API
Expand Down