InputGroup API

API documentation for InputGroup component

InputGroup#

Props#

Defines valid properties in InputGroup component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: InputGroupInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: InputGroupInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<InputGroupPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: InputGroupInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Interfaces#

Defines passthrough(pt) options of InputGroup component.

nametypedefaultdescription
rootInputGroupPassThroughType<InputHTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the root's DOM element.
addonInputGroupPassThroughType<InputHTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the addon's DOM element.

Types#

Instance of InputGroup component.

values
ComponentInstance<InputGroupProps, InputGroupState, InputGroupExposes>

InputGroupAddon#

Props#

Defines valid properties in InputGroupAddon component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: InputGroupAddonInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: InputGroupAddonInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<InputGroupAddonPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: InputGroupAddonInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by InputGroupAddon component.

nametypedefaultdescription
inputgroupInputGroupInstance
null
Instance of the InputGroup component.

Interfaces#

Defines passthrough(pt) options of InputGroupAddon component.

nametypedefaultdescription
rootInputGroupAddonPassThroughType<HTMLAttributes<HTMLButtonElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of InputGroupAddon component.

values
ComponentInstance<InputGroupAddonProps, InputGroupAddonState, InputGroupAddonExposes>