@selfcommunity/react-ui
Version:
React UI Components to integrate a Community created with SelfCommunity Platform.
44 lines (39 loc) • 1.12 kB
TypeScript
import { CreateGroupButtonProps } from '../CreateGroupButton';
import { SCGroupType } from '@selfcommunity/types';
export interface EditGroupButtonProps extends CreateGroupButtonProps {
/**
* Group Object
* @default null
*/
group?: SCGroupType;
/**
* Id of the group
* @default null
*/
groupId?: number | string;
/**
* On edit success callback function
* @default null
*/
onEditSuccess?: (data: SCGroupType) => void;
/**
* Any other properties
*/
[p: string]: any;
}
/**
*> API documentation for the Community-JS Create Group Button component. Learn about the available props and the CSS API.
*
#### Import
```jsx
import {CreateGroupButton} from '@selfcommunity/react-ui';
```
#### Component Name
The name `SCEditGroupButton` can be used when providing style overrides in the theme.
#### CSS
|Rule Name|Global class|Description|
|---|---|---|
|root|.SCEditGroupButton-root|Styles applied to the root element.|
* @param inProps
*/
export default function EditGroupButton(inProps: EditGroupButtonProps): JSX.Element;