diff --git a/bulma-ui/src/elements/Block.tsx b/bulma-ui/src/elements/Block.tsx index eef617df3..705e5d2a1 100644 --- a/bulma-ui/src/elements/Block.tsx +++ b/bulma-ui/src/elements/Block.tsx @@ -8,29 +8,25 @@ import { /** * Props for the Block component. - * - * @property {string} [className] - Additional CSS classes to apply. - * @property {(typeof validColors)[number] | 'inherit' | 'current'} [textColor] - Text color (Bulma color, 'inherit', or 'current'). - * @property {'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger'} [color] - Bulma color modifier for the block. - * @property {(typeof validColors)[number] | 'inherit' | 'current'} [bgColor] - Background color (Bulma color, 'inherit', or 'current'). - * @property {React.ReactNode} [children] - Content to be rendered inside the block. */ export interface BlockProps extends React.HTMLAttributes, Omit { + /** Additional CSS classes to apply. */ className?: string; + /** Text color helper. */ textColor?: (typeof validColors)[number] | 'inherit' | 'current'; + /** Bulma color modifier for the block. */ color?: 'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger'; + /** Background color helper. */ bgColor?: (typeof validColors)[number] | 'inherit' | 'current'; + /** Content to render inside the block. */ children?: React.ReactNode; } /** - * Block component for rendering a styled Bulma block element. - * - * A block is a simple utility element that adds spacing (margin-bottom) between elements. - * Supports Bulma helper classes for additional styling like text color, background color, and layout. + * The `Block` component renders a simple container with Bulma's `.block` class, adding vertical margin between sections of content. * * @function * @param {BlockProps} props - Props for the Block component. diff --git a/bulma-ui/src/elements/Box.tsx b/bulma-ui/src/elements/Box.tsx index 085c697ec..9974dd9ad 100644 --- a/bulma-ui/src/elements/Box.tsx +++ b/bulma-ui/src/elements/Box.tsx @@ -8,31 +8,28 @@ import { /** * Props for the Box component. - * - * @property {string} [className] - Additional CSS classes to apply. - * @property {(typeof validColors)[number] | 'inherit' | 'current'} [textColor] - Text color (Bulma color, 'inherit', or 'current'). - * @property {'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger'} [color] - Bulma color modifier for the box. - * @property {(typeof validColors)[number] | 'inherit' | 'current'} [bgColor] - Background color (Bulma color, 'inherit', or 'current'). - * @property {boolean} [hasShadow=true] - Whether the box has a shadow (default: true). - * @property {React.ReactNode} [children] - Content to be rendered inside the box. */ export interface BoxProps /** @ignore */ extends React.HTMLAttributes, Omit { + /** Additional CSS classes to apply. */ className?: string; + /** Text color helper. */ textColor?: (typeof validColors)[number] | 'inherit' | 'current'; + /** Bulma color modifier for the box. */ color?: 'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger'; + /** Background color helper. */ bgColor?: (typeof validColors)[number] | 'inherit' | 'current'; + /** Whether the box has a shadow (default: true). */ hasShadow?: boolean; + /** Content to render inside the box. */ children?: React.ReactNode; } /** - * Box component for rendering a styled Bulma box element. - * - * Supports Bulma helper classes for styling and layout, with optional shadow control. + * The `Box` component renders a bordered, padded container with an optional shadow using Bulma's `.box` class. * * @function * @param {BoxProps} props - Props for the Box component. diff --git a/bulma-ui/src/elements/Button.tsx b/bulma-ui/src/elements/Button.tsx index 53f356ee4..0a376908d 100644 --- a/bulma-ui/src/elements/Button.tsx +++ b/bulma-ui/src/elements/Button.tsx @@ -8,34 +8,12 @@ import { /** * Props for the Button component. - * - * @property {'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger' | 'white' | 'light' | 'dark' | 'black' | 'text' | 'ghost'} [color] - Bulma color modifier for the button. - * @property {'small' | 'normal' | 'medium' | 'large'} [size] - Button size. - * @property {boolean} [isLight] - Use the light version of the color. - * @property {boolean} [isRounded] - Button is fully rounded. - * @property {boolean} [isLoading] - Button shows a loading spinner. - * @property {boolean} [isStatic] - Button is static and non-interactive. - * @property {boolean} [isFullWidth] - Button takes the full width of parent. - * @property {boolean} [isOutlined] - Use outlined button style. - * @property {boolean} [isInverted] - Use inverted color style. - * @property {boolean} [isFocused] - Button is styled as focused. - * @property {boolean} [isActive] - Button is styled as active. - * @property {boolean} [isHovered] - Button is styled as hovered. - * @property {boolean} [isDisabled] - Button is disabled. - * @property {string} [className] - Additional CSS classes to apply. - * @property {(typeof validColors)[number] | 'inherit' | 'current'} [textColor] - Text color (Bulma color, 'inherit', or 'current'). - * @property {(typeof validColors)[number] | 'inherit' | 'current'} [bgColor] - Background color (Bulma color, 'inherit', or 'current'). - * @property {React.ElementType} [as] - Render as a `