DocSpace-client/packages/components/room-logo
Aleksandr Lushkin 37efdc292a Merge branch 'develop' into feature/rtl-interface-direction
# Conflicts:
#	packages/client/src/components/panels/HotkeysPanel/index.js
#	packages/client/src/pages/Home/Section/Body/TableView/TableHeader.js
#	packages/components/date-time-picker/index.js
#	packages/components/selected-item/styled-selected-item.js
2023-07-26 17:47:13 +02:00
..
index.js Web: Files: fixed public-room description after merge 2023-07-19 12:53:41 +03:00
README.md Web: Moved all clients app to packages directory 2022-07-22 22:01:25 +03:00
room-logo.stories.js Web: Components: fixed storybook selector text 2023-05-24 19:48:30 +05:00
room-logo.test.js Web: Moved all clients app to packages directory 2022-07-22 22:01:25 +03:00
styled-room-logo.js Web: Components: Adapt RoomLogo component to RTL interface 2023-06-21 17:57:12 +02:00

Room logo

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

Usage

import RoomLogo from "@docspace/components/room-logo";
<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