DocSpace-client/packages/shared/components/room-logo
2024-03-21 18:09:55 +04:00
..
index.tsx Replaced copyright start year + format 2024-03-21 18:09:55 +04:00
README.md Shared:Components:RoomLogo: rewrite to typescript 2023-12-15 11:31:10 +03:00
RoomLogo.stories.tsx Replaced copyright start year + format 2024-03-21 18:09:55 +04:00
RoomLogo.styled.ts Replaced copyright start year + format 2024-03-21 18:09:55 +04:00
RoomLogo.test.tsx Replaced copyright start year + format 2024-03-21 18:09:55 +04:00
RoomLogo.tsx Replaced copyright start year + format 2024-03-21 18:09:55 +04:00
RoomLogo.types.ts Replaced copyright start year + format 2024-03-21 18:09:55 +04:00

Room logo

Room logo allow you display default room logo depend on type and private

Usage

import { RoomLogo } from "@docspace/shared/components";
<RoomLogo type={"custom"} isPrivacy={false} isArchive={false} />
Props Type Required Values Default Description
id string - - - Accepts id
className string - - - Accepts class
style obj, array - - - Accepts css style
type number - - `` Accepts the type of room
isPrivacy boolean - - false Accepts the privacy room
isArchive boolean - - false Accepts the archive room
withCheckbox boolean - - false Accepts checkbox when row/tile is hovered or checked
isChecked boolean - - false Accepts the checked state to checkbox
isIndeterminate boolean - - false Accepts the indeterminate state to checkbox
onChange function - - - Accepts the onChange checkbox callback function