mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 12:25:22 +02:00
feat(app): introduce input-group component [EE-2062] (#6135)
This commit is contained in:
parent
9ad626b36e
commit
830286c332
11 changed files with 205 additions and 0 deletions
23
app/portainer/components/form-components/InputGroup/index.ts
Normal file
23
app/portainer/components/form-components/InputGroup/index.ts
Normal file
|
@ -0,0 +1,23 @@
|
|||
import { NumberInput, TextInput } from '../Input';
|
||||
|
||||
import { InputGroup as MainComponent } from './InputGroup';
|
||||
import { InputGroupAddon } from './InputGroupAddon';
|
||||
import { InputGroupButtonWrapper } from './InputGroupButtonWrapper';
|
||||
|
||||
interface InputGroupSubComponents {
|
||||
Addon: typeof InputGroupAddon;
|
||||
ButtonWrapper: typeof InputGroupButtonWrapper;
|
||||
Input: typeof TextInput;
|
||||
NumberInput: typeof NumberInput;
|
||||
}
|
||||
|
||||
const InputGroup: typeof MainComponent &
|
||||
InputGroupSubComponents = MainComponent as typeof MainComponent &
|
||||
InputGroupSubComponents;
|
||||
|
||||
InputGroup.Addon = InputGroupAddon;
|
||||
InputGroup.ButtonWrapper = InputGroupButtonWrapper;
|
||||
InputGroup.Input = TextInput;
|
||||
InputGroup.NumberInput = NumberInput;
|
||||
|
||||
export { InputGroup };
|
Loading…
Add table
Add a link
Reference in a new issue