antd/lib/input#GroupProps TypeScript Examples
The following examples show how to use
antd/lib/input#GroupProps.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: registerInput.ts From plasmic with MIT License | 6 votes |
inputGroupMeta: ComponentMeta<GroupProps> = {
name: "AntdInputGroup",
displayName: "Antd Input Group",
props: {
compact: {
type: "boolean",
description: "Whether use compact style",
defaultValueHint: false,
},
size: {
type: "choice",
options: ["small", "default", "large"],
description:
"The size of Input.Group specifies the size of the included Input fields",
defaultValueHint: "default",
},
children: {
type: "slot",
defaultValue: [
{
type: "component",
name: "AntdInput",
},
{
type: "component",
name: "AntdInput",
},
],
},
},
importPath: "antd/lib/input/Group",
importName: "InputGroup",
isDefaultExport: true,
parentComponentName: "AntdInput",
}
Example #2
Source File: registerInput.ts From plasmic with MIT License | 5 votes |
export function registerInputGroup(
loader?: Registerable,
customInputGroupMeta?: ComponentMeta<GroupProps>
) {
const doRegisterComponent: typeof registerComponent = (...args) =>
loader ? loader.registerComponent(...args) : registerComponent(...args);
doRegisterComponent(InputGroup, customInputGroupMeta ?? inputGroupMeta);
}