-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tag: Introduce “addable” support #1521
Conversation
🦋 Changeset detectedLatest commit: d47bf69 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@@ -4,7 +4,7 @@ import { Tag, Inline, IconTag, Stack } from '../'; | |||
import { debugTouchableAttrForDataProp } from '../private/touchable/debugTouchable'; | |||
|
|||
export const screenshots: ComponentScreenshot = { | |||
screenshotWidths: [320], | |||
screenshotWidths: [768], |
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.
Increasing the screenshot width to avoid wrapping. Tag
has no responsive behaviours and its more important to see alignment across variants horizontally.
); | ||
|
||
return { | ||
code: code.replaceAll(': string', ''), |
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.
Stripping type information from the above example to ensure Playroom links work as expected
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.
➕ ➕ ➕
packages/braid-design-system/src/lib/components/Tag/Tag.docs.tsx
Outdated
Show resolved
Hide resolved
packages/braid-design-system/src/lib/components/Tag/Tag.docs.tsx
Outdated
Show resolved
Hide resolved
Co-authored-by: Adam Skoufis <[email protected]>
Tag actions have been extended to now support being “added”.
A
Tag
will include a small add icon button when both anonAdd
handler andaddLabel
prop are provided.EXAMPLE USAGE:
Preview