DocSpace-client/packages/shared/components/link-with-dropdown
2024-07-09 14:44:14 +05:00
..
index.tsx Replaced copyright start year + format 2024-03-21 18:09:55 +04:00
LinkWithDropdown.stories.tsx Replaced copyright start year + format 2024-03-21 18:09:55 +04:00
LinkWithDropdown.styled.tsx Replaced copyright start year + format 2024-03-21 18:09:55 +04:00
LinkWithDropdown.test.tsx Replaced copyright start year + format 2024-03-21 18:09:55 +04:00
LinkWithDropdown.tsx Fix Bug 69067 - Shared: LinkWithDropdown: added a manual width parameter so that you can explicitly set the width 2024-07-09 14:44:14 +05:00
LinkWithDropdown.types.ts Fix Bug 69067 - Shared: LinkWithDropdown: added a manual width parameter so that you can explicitly set the width 2024-07-09 14:44:14 +05:00
README.md Client: fix after rewrite to typescript 2023-12-27 17:45:22 +03:00

LinkWithDropdown

Link with dropdown

Usage

import { LinkWithDropdown } from "@docspace/shared/components";
<LinkWithDropdown color="black" isBold={true} data={data}>
  Link with dropdown
</LinkWithDropdown>

Properties

Props Type Required Values Default Description
color oneOf - gray, black, blue black Color of link in all states - hover, active, visited
data array - - - Array of objects, each can contain <DropDownItem /> props
dropdownType oneOf alwaysDashed, appearDashedAfterHover - Type of dropdown: alwaysDashed is always show dotted style and icon of arrow, appearDashedAfterHover is show dotted style and icon arrow only after hover
fontSize string - - 13px Font size of link
fontWeight number, string - - - Font weight of link
id string - - - Accepts id
isBold bool - - false Set font weight
isSemitransparent bool - - false Set css-property 'opacity' to 0.5. Usually apply for users with "pending" status
isTextOverflow bool - - true Activate or deactivate text-overflow CSS property with ellipsis (' … ') value
style obj, array - - - Accepts css style
title string - - - Title of link