@selfcommunity/react-ui
Version:
React UI Components to integrate a Community created with SelfCommunity Platform.
74 lines (65 loc) • 2.21 kB
TypeScript
import { WidgetProps } from '../Widget';
import { SCGroupType } from '@selfcommunity/types';
import { CacheStrategies } from '@selfcommunity/utils';
import { BaseDialogProps } from '../../shared/BaseDialog';
import { VirtualScrollerItemProps } from '../../types/virtualScroller';
import { UserProps } from '../User';
export interface GroupInvitedWidgetProps extends VirtualScrollerItemProps, WidgetProps {
/**
* Group Object
* @default null
*/
group?: SCGroupType;
/**
* Id of the group
* @default null
*/
groupId?: number | string;
/**
* Limit the number of users to show
* @default false
*/
limit?: number;
/**
* Caching strategies
* @default CacheStrategies.CACHE_FIRST
*/
cacheStrategy?: CacheStrategies;
/**
* Props to spread to single user object
* @default empty object
*/
UserProps?: UserProps;
/**
* Props to spread to followers users dialog
* @default {}
*/
DialogProps?: BaseDialogProps;
/**
* Other props
*/
[p: string]: any;
}
/**
* > API documentation for the Community-JS Group Invited Widget component. Learn about the available props and the CSS API.
*
*
* This component renders the list of users who have been invited to join the specified group.
#### Import
```jsx
import {GroupInvitedWidget} from '@selfcommunity/react-ui';
```
#### Component Name
The name `SCGroupInvitedWidget` can be used when providing style overrides in the theme.
#### CSS
|Rule Name|Global class|Description|
|---|---|---|
|root|.SCGroupInvitedWidget-root|Styles applied to the root element.|
|title|.SCGroupInvitedWidget-title|Styles applied to the title element.|
|noResults|.SCGroupInvitedWidget-no-results|Styles applied to no results section.|
|showMore|.SCGroupInvitedWidget-show-more|Styles applied to show more button element.|
|dialogRoot|.SCGroupInvitedWidget-dialog-root|Styles applied to the dialog root element.|
|endMessage|.SCGroupInvitedWidget-end-message|Styles applied to the end message element.|
* @param inProps
*/
export default function GroupInvitedWidget(inProps: GroupInvitedWidgetProps): JSX.Element;