-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Addon-docs: Add Controls ("knobs") support to Props #6639
Comments
Will this be released in 5.2.0? |
@Portals hopefully 5.3. 5.2 is almost ready to ship, so really just bugfixes and minor tweaks at this point! |
Anyone working on this, can i give it a try if you have some design mockups |
@atanasster @JeroenReumkens has built an amazing prototype. I don't know the current status: JeroenReumkens@2a9267e |
@YuunYang all Also the controls PR hasn't been merged yet. |
Jeepers creepers!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.0.0-alpha.34 containing PR #10354 that references this issue. Upgrade today to try it out! You can find this prerelease on the Closing this issue. Please re-open if you think there's still more to do. |
Huzzah!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.0.0-alpha.35 containing PR #10432 that references this issue. Upgrade today to try it out! You can find this prerelease on the Closing this issue. Please re-open if you think there's still more to do. |
Yee-haw!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.0.0-alpha.37 containing PR #10451 that references this issue. Upgrade today to try it out! You can find this prerelease on the |
I've written a Storybook Args w/ CRA & TypeScript Walkthrough for anybody who wants to try it: |
@shilman This write up is great thanks. Do you need typescript to get the full benefits of args? |
Awesome !!! |
@lpoulter No, it works in React/JS with PropTypes ... and should work with Vue, Angular, Ember, Web components--though I haven't tested that yet (and I wouldn't be surprised if there are tweaks needed to get it working. And if you don't have any of those, you can declare your own |
seems got an error, if I want reset the filed to initial value, it can't trigger even I change another field, It still not changed, and by the way, maybe we need a throttle function. |
@YuunYang do you have a repro i can look at? |
@shilman I'm sorry I cant, because it is a private repo, and our company forbid us to share the code. my English is not very good, maybe I didn't describe this question detailedly, I will give you a live pic next week when I back to work. |
The HD GIF https://drive.google.com/file/d/1jONAgoxzJTj59S2r-MqAMoW8N6xxNKpJ/view?usp=sharing Looks at this example, the default value is right, when I change the value It changed in the meantime, but when I try to change it to it default value "right", it seems not changed. this is my code import React from 'react';
import Xtable from '../Basic';
import getConfig from '../utils/getConfig';
import { IXtableCoreConfig } from '../../src/Xtable/type';
export const Basic = ({ ...config }: IXtableCoreConfig ) => {
console.log(config)
return <Xtable {...config} />
}
const config = {
// scroll: { x: 2000 },
headerWidgetsAlign: 'right',
showEditBtn: false,
showResetBtn: false,
showSearchBtn: false,
showDeleteBtn: false,
searchTrigger: 'onChange',
...
}
Basic.story = {
args: {
...config
}
}
export default {
title: 'xtable',
parameters: {
component: Basic,
componentSubtitle: '',
},
}; Edit: |
w00t!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.0.0-alpha.40 containing PR #10473 that references this issue. Upgrade today to try it out! You can find this prerelease on the |
More generally: #6700
The text was updated successfully, but these errors were encountered: