-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Support for customTarget in MultiSelect Component (#6915)
Co-authored-by: svc-changelog <svc-changelog@palantir.com>
- Loading branch information
1 parent
67daadd
commit d51c90c
Showing
10 changed files
with
298 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
type: improvement | ||
improvement: | ||
description: Add Support for Custom Target in MultiSelect Component | ||
links: | ||
- https://github.com/palantir/blueprint/pull/6915 |
31 changes: 31 additions & 0 deletions
31
packages/docs-app/src/examples/select-examples/multiSelectCustomTarget.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* ! | ||
* (c) Copyright 2024 Palantir Technologies Inc. All rights reserved. | ||
*/ | ||
|
||
import * as React from "react"; | ||
|
||
import { Tag, Text } from "@blueprintjs/core"; | ||
|
||
interface IMultiSelectCustomTargetProps { | ||
count: number; | ||
} | ||
|
||
export const MultiSelectCustomTarget: React.FC<IMultiSelectCustomTargetProps> = ({ count }) => { | ||
return ( | ||
<Tag | ||
large={true} | ||
round={true} | ||
minimal={true} | ||
interactive={true} | ||
intent={"primary"} | ||
className="docs-custom-target" | ||
> | ||
<div className="docs-custom-target-content"> | ||
<Text className={"docs-custom-target-text"}>Custom Target</Text> | ||
<Tag intent={"primary"} round={true}> | ||
{count} | ||
</Tag> | ||
</div> | ||
</Tag> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
type: improvement | ||
improvement: | ||
description: Add Support for children in MultiSelect Component | ||
links: | ||
- https://github.com/palantir/blueprint/pull/6915 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
d51c90c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add Support for customTarget in MultiSelect Component (#6915)
Build artifact links for this commit: documentation | landing | table | demoThis is an automated comment from the deploy-preview CircleCI job.