Skip to content

Commit 59fac84

Browse files
pablinosmatticbot
authored andcommitted
Publicize Components: Add Storybook support (#42167)
In order to develop some new comonents we're adding Storybook support to the Publicize Components package. This is done by adding it to the list of projects, but this change also adds an initial story for the ConnectionIcon component. Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/13632658599 Upstream-Ref: Automattic/jetpack@e092b9c
1 parent c25b1ec commit 59fac84

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ This is an alpha version! The changes listed here are not final.
1414

1515
### Added
1616
- Added unit tests for the admin page
17+
- Publicize Components: Add Storybook support
1718

1819
### Changed
1920
- Social | Improve connect URL generation
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
import ConnectionIcon from '../index.jsx';
2+
import '../../../../../social-logos/src/social-logo-colors.css';
3+
4+
export default {
5+
title: 'JS Packages/Publicize Components/ConnectionIcon',
6+
component: ConnectionIcon,
7+
argTypes: {
8+
serviceName: {
9+
control: {
10+
type: 'select',
11+
},
12+
options: [
13+
'facebook',
14+
'x',
15+
'instagram',
16+
'linkedin',
17+
'nextdoor',
18+
'tumblr',
19+
'bluesky',
20+
'mastodon',
21+
],
22+
},
23+
},
24+
};
25+
26+
const Template = args => <ConnectionIcon { ...args } />;
27+
28+
export const _default = Template.bind( {} );
29+
_default.args = {
30+
serviceName: 'tumblr',
31+
label: 'Jetpack Social',
32+
checked: true,
33+
profilePicture:
34+
'https://gravatar.com/avatar/5a5f21e099ba62ae525e62cd1ad859985c8170b8811431e7fa6ccbc9da22405b',
35+
};

0 commit comments

Comments
 (0)