Skip to content

Commit

Permalink
[FilledInput][material-next] Copy v5 FilledInput (mui#39040)
Browse files Browse the repository at this point in the history
  • Loading branch information
mj12albert authored Sep 27, 2023
1 parent 358aa32 commit 592855f
Show file tree
Hide file tree
Showing 8 changed files with 643 additions and 0 deletions.
41 changes: 41 additions & 0 deletions packages/mui-material-next/src/FilledInput/FilledInput.d.ts
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;
Loading

0 comments on commit 592855f

Please sign in to comment.