-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[material-ui][RadioGroup] Apply classnames (#41610)
- Loading branch information
1 parent
b7f5def
commit f1d87cf
Showing
9 changed files
with
80 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
'use client'; | ||
export { default } from './RadioGroup'; | ||
export { default as useRadioGroup } from './useRadioGroup'; | ||
|
||
export { default as radioGroupClasses } from './radioGroupClasses'; | ||
export * from './radioGroupClasses'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import generateUtilityClasses from '@mui/utils/generateUtilityClasses'; | ||
import generateUtilityClass from '@mui/utils/generateUtilityClass'; | ||
import { FormGroupClasses } from '../FormGroup'; | ||
|
||
export type RadioGroupClassKey = keyof FormGroupClasses; | ||
|
||
export type RadioGroupClasses = FormGroupClasses; | ||
|
||
export function getRadioGroupUtilityClass(slot: string): string { | ||
return generateUtilityClass('MuiRadioGroup', slot); | ||
} | ||
|
||
const radioGroupClasses: RadioGroupClasses = generateUtilityClasses('MuiRadioGroup', [ | ||
'root', | ||
'row', | ||
'error', | ||
]); | ||
|
||
export default radioGroupClasses; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters