/** * Button component for user actions. * * @usage * - Use `primary` variant for the main call-to-action on a page * - Use `secondary` variant for less important actions * - Use `destructive` variant only for delete/remove actions * - Use `ghost` variant for tertiary actions or in toolbars * * @when-not-to-use * - Do not use Button for navigation; use Link instead * - Do not use multiple primary buttons in the same section */export const Button = ({ variant, size, children, ...props }) => { // ...}
In Storybook or other docs, show the import path callers should use:
// Good: shows the import path users should rely onimport { Button } from '@mycompany/design-system'// Avoid: deep internal paths that may changeimport { Button } from '@mycompany/design-system/src/components/Button/Button'