forked from mui/material-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FilledInput][material-next] Copy v5 FilledInput (mui#39040)
- Loading branch information
1 parent
358aa32
commit 592855f
Showing
8 changed files
with
643 additions
and
0 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
packages/mui-material-next/src/FilledInput/FilledInput.d.ts
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,41 @@ | ||
import { SxProps } from '@mui/system'; | ||
import { InternalStandardProps as StandardProps, Theme } from '@mui/material'; | ||
import { InputBaseProps } from '@mui/material/InputBase'; | ||
import { FilledInputClasses } from './filledInputClasses'; | ||
|
||
export interface FilledInputProps extends StandardProps<InputBaseProps> { | ||
/** | ||
* Override or extend the styles applied to the component. | ||
*/ | ||
classes?: Partial<FilledInputClasses>; | ||
/** | ||
* If `true`, the label is hidden. | ||
* This is used to increase density for a `FilledInput`. | ||
* Be sure to add `aria-label` to the `input` element. | ||
* @default false | ||
*/ | ||
hiddenLabel?: boolean; | ||
/** | ||
* If `true`, the input will not have an underline. | ||
*/ | ||
disableUnderline?: boolean; | ||
/** | ||
* The system prop that allows defining system overrides as well as additional CSS styles. | ||
*/ | ||
sx?: SxProps<Theme>; | ||
} | ||
|
||
/** | ||
* | ||
* Demos: | ||
* | ||
* - [Text Field](https://mui.com/material-ui/react-text-field/) | ||
* | ||
* API: | ||
* | ||
* - [FilledInput API](https://mui.com/material-ui/api/filled-input/) | ||
* - inherits [InputBase API](https://mui.com/material-ui/api/input-base/) | ||
*/ | ||
declare const FilledInput: ((props: FilledInputProps) => JSX.Element) & { muiName: string }; | ||
|
||
export default FilledInput; |
Oops, something went wrong.