@allxsmith/bestax-bulma 5.7.0 → 5.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +28 -0
- package/CLAUDE.md +28 -0
- package/README.md +24 -0
- package/dist/index.cjs.js +3485 -55
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +3485 -55
- package/dist/index.esm.js.map +1 -1
- package/dist/types/columns/Column.d.ts +38 -0
- package/dist/types/columns/Columns.d.ts +31 -0
- package/dist/types/components/Avatar.d.ts +32 -0
- package/dist/types/components/Avatars.d.ts +12 -0
- package/dist/types/components/Badge.d.ts +34 -0
- package/dist/types/components/Breadcrumb.d.ts +25 -0
- package/dist/types/components/Card.d.ts +60 -0
- package/dist/types/components/Carousel.d.ts +70 -0
- package/dist/types/components/Collapse.d.ts +52 -0
- package/dist/types/components/Dialog.d.ts +89 -0
- package/dist/types/components/Dropdown.d.ts +42 -0
- package/dist/types/components/Loading.d.ts +50 -0
- package/dist/types/components/Menu.d.ts +44 -0
- package/dist/types/components/Message.d.ts +20 -0
- package/dist/types/components/Modal.d.ts +50 -0
- package/dist/types/components/Navbar.d.ts +147 -0
- package/dist/types/components/Pagination.d.ts +81 -0
- package/dist/types/components/Panel.d.ts +93 -0
- package/dist/types/components/Reveal.d.ts +37 -0
- package/dist/types/components/Sidebar.d.ts +37 -0
- package/dist/types/components/Steps.d.ts +56 -0
- package/dist/types/components/Tabs.d.ts +90 -0
- package/dist/types/components/Toast.d.ts +104 -0
- package/dist/types/components/Tooltip.d.ts +46 -0
- package/dist/types/elements/Block.d.ts +21 -0
- package/dist/types/elements/Box.d.ts +25 -1
- package/dist/types/elements/Button.d.ts +33 -0
- package/dist/types/elements/Buttons.d.ts +16 -0
- package/dist/types/elements/Code.d.ts +14 -0
- package/dist/types/elements/Content.d.ts +22 -0
- package/dist/types/elements/Delete.d.ts +24 -0
- package/dist/types/elements/Divider.d.ts +12 -0
- package/dist/types/elements/Emphasis.d.ts +14 -0
- package/dist/types/elements/Figure.d.ts +23 -0
- package/dist/types/elements/Icon.d.ts +28 -0
- package/dist/types/elements/IconText.d.ts +20 -0
- package/dist/types/elements/Image.d.ts +27 -0
- package/dist/types/elements/Link.d.ts +20 -0
- package/dist/types/elements/LinkButton.d.ts +20 -0
- package/dist/types/elements/ListItem.d.ts +15 -0
- package/dist/types/elements/Notification.d.ts +110 -0
- package/dist/types/elements/OrderedList.d.ts +10 -0
- package/dist/types/elements/Paragraph.d.ts +14 -0
- package/dist/types/elements/Pre.d.ts +14 -0
- package/dist/types/elements/Progress.d.ts +26 -0
- package/dist/types/elements/Skeleton.d.ts +22 -0
- package/dist/types/elements/Span.d.ts +14 -0
- package/dist/types/elements/Strong.d.ts +14 -0
- package/dist/types/elements/SubTitle.d.ts +25 -0
- package/dist/types/elements/Table.d.ts +14 -0
- package/dist/types/elements/Tag.d.ts +25 -0
- package/dist/types/elements/Tags.d.ts +7 -0
- package/dist/types/elements/Tbody.d.ts +18 -0
- package/dist/types/elements/Td.d.ts +23 -0
- package/dist/types/elements/Tfoot.d.ts +18 -0
- package/dist/types/elements/Th.d.ts +24 -0
- package/dist/types/elements/Thead.d.ts +18 -0
- package/dist/types/elements/Title.d.ts +26 -0
- package/dist/types/elements/Tr.d.ts +20 -0
- package/dist/types/elements/UnorderedList.d.ts +7 -0
- package/dist/types/form/Autocomplete.d.ts +64 -0
- package/dist/types/form/Checkbox.d.ts +33 -0
- package/dist/types/form/Checkboxes.d.ts +9 -0
- package/dist/types/form/Control.d.ts +37 -0
- package/dist/types/form/DateInput.d.ts +44 -0
- package/dist/types/form/DateInputBase.d.ts +49 -0
- package/dist/types/form/DateTimeInput.d.ts +42 -0
- package/dist/types/form/DateTimeInputBase.d.ts +58 -0
- package/dist/types/form/Field.d.ts +52 -0
- package/dist/types/form/File.d.ts +24 -0
- package/dist/types/form/FormContext.d.ts +46 -0
- package/dist/types/form/Input.d.ts +45 -0
- package/dist/types/form/InputBase.d.ts +21 -0
- package/dist/types/form/Numberinput.d.ts +43 -0
- package/dist/types/form/Radio.d.ts +33 -0
- package/dist/types/form/Radios.d.ts +9 -0
- package/dist/types/form/Rate.d.ts +55 -0
- package/dist/types/form/Select.d.ts +35 -0
- package/dist/types/form/SelectBase.d.ts +24 -0
- package/dist/types/form/Slider.d.ts +86 -0
- package/dist/types/form/Switch.d.ts +50 -0
- package/dist/types/form/Taginput.d.ts +74 -0
- package/dist/types/form/TextArea.d.ts +34 -0
- package/dist/types/form/TextAreaBase.d.ts +24 -0
- package/dist/types/form/TimeInput.d.ts +40 -0
- package/dist/types/form/TimeInputBase.d.ts +51 -0
- package/dist/types/form/_pickerInternals/Calendar.d.ts +6 -0
- package/dist/types/form/_pickerInternals/TimeWheels.d.ts +13 -0
- package/dist/types/form/_pickerInternals/audioTick.d.ts +47 -0
- package/dist/types/form/_pickerInternals/dateUtils.d.ts +13 -0
- package/dist/types/form/_pickerInternals/formatters.d.ts +19 -0
- package/dist/types/form/_pickerInternals/haptics.d.ts +23 -0
- package/dist/types/form/_pickerInternals/pickerTypes.d.ts +8 -0
- package/dist/types/form/_pickerInternals/segmentMap.d.ts +48 -0
- package/dist/types/form/_pickerInternals/useNativeMobilePicker.d.ts +1 -0
- package/dist/types/form/_pickerInternals/useSegmentedEntry.d.ts +30 -0
- package/dist/types/form/fieldProps.d.ts +12 -0
- package/dist/types/grid/Cell.d.ts +25 -0
- package/dist/types/grid/Grid.d.ts +32 -0
- package/dist/types/helpers/Config.d.ts +50 -0
- package/dist/types/helpers/Theme.d.ts +66 -0
- package/dist/types/helpers/bulmaClassHelpers.d.ts +97 -0
- package/dist/types/helpers/classNames.d.ts +50 -0
- package/dist/types/helpers/colorDeprecations.d.ts +17 -0
- package/dist/types/helpers/useBulmaClasses.d.ts +22 -0
- package/dist/types/helpers/useColorClasses.d.ts +20 -0
- package/dist/types/helpers/useFlexboxClasses.d.ts +34 -0
- package/dist/types/helpers/useOtherClasses.d.ts +27 -0
- package/dist/types/helpers/useSpacingClasses.d.ts +27 -0
- package/dist/types/helpers/useTypographyClasses.d.ts +32 -0
- package/dist/types/helpers/useVisibilityClasses.d.ts +25 -0
- package/dist/types/helpers/withSubComponents.d.ts +13 -0
- package/dist/types/layout/Container.d.ts +29 -0
- package/dist/types/layout/Footer.d.ts +22 -0
- package/dist/types/layout/Hero.d.ts +67 -0
- package/dist/types/layout/Level.d.ts +60 -0
- package/dist/types/layout/Media.d.ts +56 -0
- package/dist/types/layout/Section.d.ts +20 -0
- package/dist/types/skill-examples/ExampleMeta.d.ts +5 -0
- package/dist/types/skill-examples/ProfileCard.d.ts +13 -0
- package/llms.txt +9 -0
- package/package.json +30 -28
|
@@ -1,12 +1,46 @@
|
|
|
1
1
|
import { validFlexDirections, validFlexWraps, validJustifyContents, validAlignContents, validAlignItems, validAlignSelfs, validFlexGrowShrink, BulmaDisplayProps } from './bulmaClassHelpers';
|
|
2
|
+
/**
|
|
3
|
+
* Props for applying Bulma flexbox helper classes. The display props are read
|
|
4
|
+
* only to gate the flex container helpers; this hook never emits display
|
|
5
|
+
* classes itself.
|
|
6
|
+
*/
|
|
2
7
|
export interface BulmaFlexboxProps extends BulmaDisplayProps {
|
|
8
|
+
/** Flex direction (e.g., 'row', 'column'). */
|
|
3
9
|
flexDirection?: (typeof validFlexDirections)[number];
|
|
10
|
+
/** Flex wrap (e.g., 'wrap', 'nowrap'). */
|
|
4
11
|
flexWrap?: (typeof validFlexWraps)[number];
|
|
12
|
+
/** Justify content (e.g., 'center', 'space-between'). */
|
|
5
13
|
justifyContent?: (typeof validJustifyContents)[number];
|
|
14
|
+
/** Align content (e.g., 'center', 'stretch'). */
|
|
6
15
|
alignContent?: (typeof validAlignContents)[number];
|
|
16
|
+
/** Align items (e.g., 'center', 'flex-start'). */
|
|
7
17
|
alignItems?: (typeof validAlignItems)[number];
|
|
18
|
+
/** Align self (e.g., 'auto', 'center'). */
|
|
8
19
|
alignSelf?: (typeof validAlignSelfs)[number];
|
|
20
|
+
/** Flex grow value (e.g., '0', '1', '2', '3', '4', '5'). */
|
|
9
21
|
flexGrow?: (typeof validFlexGrowShrink)[number];
|
|
22
|
+
/** Flex shrink value (e.g., '0', '1', '2', '3', '4', '5'). */
|
|
10
23
|
flexShrink?: (typeof validFlexGrowShrink)[number];
|
|
11
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* A hook that generates Bulma flexbox helper classes. Flex container helpers
|
|
27
|
+
* (direction, wrap, justify/align content, align items) are only emitted when
|
|
28
|
+
* one of the display props indicates a flex display; flex item helpers
|
|
29
|
+
* (align self, grow, shrink) are always emitted.
|
|
30
|
+
*
|
|
31
|
+
* Note: this hook reads the display props purely as a gate and never emits
|
|
32
|
+
* display classes — `is-flex` and friends come from useVisibilityClasses (or
|
|
33
|
+
* the useBulmaClasses aggregate).
|
|
34
|
+
*
|
|
35
|
+
* @function useFlexboxClasses
|
|
36
|
+
* @param props - Flexbox-related Bulma helper props.
|
|
37
|
+
* @returns A space-separated string of flexbox helper classes.
|
|
38
|
+
* @example
|
|
39
|
+
* const flexboxClasses = useFlexboxClasses({
|
|
40
|
+
* display: 'flex', // gates the container helpers, but emits no 'is-flex'
|
|
41
|
+
* justifyContent: 'center',
|
|
42
|
+
* });
|
|
43
|
+
* // flexboxClasses: 'is-justify-content-center'
|
|
44
|
+
* // ('is-flex' itself comes from useVisibilityClasses/useBulmaClasses)
|
|
45
|
+
*/
|
|
12
46
|
export declare const useFlexboxClasses: (props: BulmaFlexboxProps) => string;
|
|
@@ -1,15 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Props for applying miscellaneous Bulma helper classes.
|
|
3
|
+
*/
|
|
1
4
|
export interface BulmaOtherProps {
|
|
5
|
+
/** Float direction (e.g., 'left', 'right'). */
|
|
2
6
|
float?: 'left' | 'right';
|
|
7
|
+
/** Overflow behavior (e.g., 'clipped'). */
|
|
3
8
|
overflow?: 'clipped';
|
|
9
|
+
/** Applies overlay styling if true. */
|
|
4
10
|
overlay?: boolean;
|
|
11
|
+
/** Interaction behavior (e.g., 'unselectable', 'clickable'). */
|
|
5
12
|
interaction?: 'unselectable' | 'clickable';
|
|
13
|
+
/** Cursor style (e.g., 'pointer', 'help'). */
|
|
6
14
|
cursor?: 'pointer' | 'help';
|
|
15
|
+
/** Border radius style (e.g., 'radiusless'). */
|
|
7
16
|
radius?: 'radiusless';
|
|
17
|
+
/** Shadow style (e.g., 'shadowless'). */
|
|
8
18
|
shadow?: 'shadowless';
|
|
19
|
+
/** Responsive behavior (e.g., 'mobile', 'narrow'). */
|
|
9
20
|
responsive?: 'mobile' | 'narrow';
|
|
21
|
+
/** Add Bulma skeleton class if true. */
|
|
10
22
|
skeleton?: boolean;
|
|
23
|
+
/** Applies clearfix to fix floating children if true. */
|
|
11
24
|
clearfix?: boolean;
|
|
25
|
+
/** Applies position: relative if true. */
|
|
12
26
|
relative?: boolean;
|
|
27
|
+
/** Applies height: 100% if true. */
|
|
13
28
|
fullHeight?: boolean;
|
|
14
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* A hook that generates miscellaneous Bulma helper classes (float, overflow,
|
|
32
|
+
* overlay, interaction, cursor, radius, shadow, responsive, skeleton,
|
|
33
|
+
* clearfix, relative, and full height).
|
|
34
|
+
*
|
|
35
|
+
* @function useOtherClasses
|
|
36
|
+
* @param props - Miscellaneous Bulma helper props.
|
|
37
|
+
* @returns A space-separated string of helper classes.
|
|
38
|
+
* @example
|
|
39
|
+
* const otherClasses = useOtherClasses({ float: 'left', skeleton: true });
|
|
40
|
+
* // otherClasses: 'is-pulled-left is-skeleton'
|
|
41
|
+
*/
|
|
15
42
|
export declare const useOtherClasses: (props: BulmaOtherProps) => string;
|
|
@@ -1,18 +1,45 @@
|
|
|
1
1
|
import { validSizes } from './bulmaClassHelpers';
|
|
2
|
+
/**
|
|
3
|
+
* Props for applying Bulma margin and padding helper classes.
|
|
4
|
+
*/
|
|
2
5
|
export interface BulmaSpacingProps {
|
|
6
|
+
/** Margin (e.g., '0', '1'). */
|
|
3
7
|
m?: (typeof validSizes)[number];
|
|
8
|
+
/** Margin top. */
|
|
4
9
|
mt?: (typeof validSizes)[number];
|
|
10
|
+
/** Margin right. */
|
|
5
11
|
mr?: (typeof validSizes)[number];
|
|
12
|
+
/** Margin bottom. */
|
|
6
13
|
mb?: (typeof validSizes)[number];
|
|
14
|
+
/** Margin left. */
|
|
7
15
|
ml?: (typeof validSizes)[number];
|
|
16
|
+
/** Margin horizontal (left and right). */
|
|
8
17
|
mx?: (typeof validSizes)[number];
|
|
18
|
+
/** Margin vertical (top and bottom). */
|
|
9
19
|
my?: (typeof validSizes)[number];
|
|
20
|
+
/** Padding (e.g., '0', '1'). */
|
|
10
21
|
p?: (typeof validSizes)[number];
|
|
22
|
+
/** Padding top. */
|
|
11
23
|
pt?: (typeof validSizes)[number];
|
|
24
|
+
/** Padding right. */
|
|
12
25
|
pr?: (typeof validSizes)[number];
|
|
26
|
+
/** Padding bottom. */
|
|
13
27
|
pb?: (typeof validSizes)[number];
|
|
28
|
+
/** Padding left. */
|
|
14
29
|
pl?: (typeof validSizes)[number];
|
|
30
|
+
/** Padding horizontal (left and right). */
|
|
15
31
|
px?: (typeof validSizes)[number];
|
|
32
|
+
/** Padding vertical (top and bottom). */
|
|
16
33
|
py?: (typeof validSizes)[number];
|
|
17
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* A hook that generates Bulma margin and padding helper classes.
|
|
37
|
+
*
|
|
38
|
+
* @function useSpacingClasses
|
|
39
|
+
* @param props - Spacing-related Bulma helper props.
|
|
40
|
+
* @returns A space-separated string of spacing helper classes.
|
|
41
|
+
* @example
|
|
42
|
+
* const spacingClasses = useSpacingClasses({ m: '2', px: '4' });
|
|
43
|
+
* // spacingClasses: 'm-2 px-4'
|
|
44
|
+
*/
|
|
18
45
|
export declare const useSpacingClasses: (props: BulmaSpacingProps) => string;
|
|
@@ -1,19 +1,51 @@
|
|
|
1
1
|
import { validTextSizes, validAlignments, validTextTransforms, validTextWeights, validFontFamilies, BulmaViewportProps } from './bulmaClassHelpers';
|
|
2
|
+
/**
|
|
3
|
+
* Props for applying Bulma typography helper classes.
|
|
4
|
+
*/
|
|
2
5
|
export interface BulmaTypographyProps extends BulmaViewportProps {
|
|
6
|
+
/** Text size (e.g., '1', '2'). */
|
|
3
7
|
textSize?: (typeof validTextSizes)[number];
|
|
8
|
+
/** Text alignment (e.g., 'centered', 'left'). */
|
|
4
9
|
textAlign?: (typeof validAlignments)[number];
|
|
10
|
+
/** Text transformation (e.g., 'uppercase', 'italic'). */
|
|
5
11
|
textTransform?: (typeof validTextTransforms)[number];
|
|
12
|
+
/** Text weight (e.g., 'light', 'bold'). */
|
|
6
13
|
textWeight?: (typeof validTextWeights)[number];
|
|
14
|
+
/** Font family (e.g., 'sans-serif', 'code'). */
|
|
7
15
|
fontFamily?: (typeof validFontFamilies)[number];
|
|
16
|
+
/** Text size for mobile viewport (up to 768px). */
|
|
8
17
|
textSizeMobile?: (typeof validTextSizes)[number];
|
|
18
|
+
/** Text size for tablet viewport (769px - 1023px). */
|
|
9
19
|
textSizeTablet?: (typeof validTextSizes)[number];
|
|
20
|
+
/** Text size for desktop viewport (1024px - 1215px). */
|
|
10
21
|
textSizeDesktop?: (typeof validTextSizes)[number];
|
|
22
|
+
/** Text size for widescreen viewport (1216px - 1407px). */
|
|
11
23
|
textSizeWidescreen?: (typeof validTextSizes)[number];
|
|
24
|
+
/** Text size for fullhd viewport (1408px and above). */
|
|
12
25
|
textSizeFullhd?: (typeof validTextSizes)[number];
|
|
26
|
+
/** Text alignment for mobile viewport (up to 768px). */
|
|
13
27
|
textAlignMobile?: (typeof validAlignments)[number];
|
|
28
|
+
/** Text alignment for tablet viewport (769px - 1023px). */
|
|
14
29
|
textAlignTablet?: (typeof validAlignments)[number];
|
|
30
|
+
/** Text alignment for desktop viewport (1024px - 1215px). */
|
|
15
31
|
textAlignDesktop?: (typeof validAlignments)[number];
|
|
32
|
+
/** Text alignment for widescreen viewport (1216px - 1407px). */
|
|
16
33
|
textAlignWidescreen?: (typeof validAlignments)[number];
|
|
34
|
+
/** Text alignment for fullhd viewport (1408px and above). */
|
|
17
35
|
textAlignFullhd?: (typeof validAlignments)[number];
|
|
18
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* A hook that generates Bulma typography helper classes, including
|
|
39
|
+
* viewport-specific text size and alignment variants.
|
|
40
|
+
*
|
|
41
|
+
* @function useTypographyClasses
|
|
42
|
+
* @param props - Typography-related Bulma helper props.
|
|
43
|
+
* @returns A space-separated string of typography helper classes.
|
|
44
|
+
* @example
|
|
45
|
+
* const typographyClasses = useTypographyClasses({
|
|
46
|
+
* textSize: '3',
|
|
47
|
+
* textWeight: 'bold',
|
|
48
|
+
* });
|
|
49
|
+
* // typographyClasses: 'is-size-3 has-text-weight-bold'
|
|
50
|
+
*/
|
|
19
51
|
export declare const useTypographyClasses: (props: BulmaTypographyProps) => string;
|
|
@@ -1,10 +1,35 @@
|
|
|
1
1
|
import { validVisibilities, BulmaViewportProps, BulmaDisplayProps } from './bulmaClassHelpers';
|
|
2
|
+
/**
|
|
3
|
+
* Props for applying Bulma visibility and display helper classes.
|
|
4
|
+
*/
|
|
2
5
|
export interface BulmaVisibilityProps extends BulmaViewportProps, BulmaDisplayProps {
|
|
6
|
+
/** Visibility (e.g., 'hidden', 'sr-only'). */
|
|
3
7
|
visibility?: (typeof validVisibilities)[number];
|
|
8
|
+
/** Visibility for mobile viewport (up to 768px). */
|
|
4
9
|
visibilityMobile?: (typeof validVisibilities)[number];
|
|
10
|
+
/** Visibility for tablet viewport (769px - 1023px). */
|
|
5
11
|
visibilityTablet?: (typeof validVisibilities)[number];
|
|
12
|
+
/** Visibility for desktop viewport (1024px - 1215px). */
|
|
6
13
|
visibilityDesktop?: (typeof validVisibilities)[number];
|
|
14
|
+
/** Visibility for widescreen viewport (1216px - 1407px). */
|
|
7
15
|
visibilityWidescreen?: (typeof validVisibilities)[number];
|
|
16
|
+
/** Visibility for fullhd viewport (1408px and above). */
|
|
8
17
|
visibilityFullhd?: (typeof validVisibilities)[number];
|
|
9
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* A hook that generates Bulma visibility and display helper classes. This hook
|
|
21
|
+
* owns all display class emission, including viewport-specific display props,
|
|
22
|
+
* the legacy display/viewport combination, and `display: 'none'` mapping to
|
|
23
|
+
* `is-hidden`.
|
|
24
|
+
*
|
|
25
|
+
* @function useVisibilityClasses
|
|
26
|
+
* @param props - Visibility- and display-related Bulma helper props.
|
|
27
|
+
* @returns A space-separated string of visibility and display helper classes.
|
|
28
|
+
* @example
|
|
29
|
+
* const visibilityClasses = useVisibilityClasses({
|
|
30
|
+
* display: 'flex',
|
|
31
|
+
* visibilityMobile: 'hidden',
|
|
32
|
+
* });
|
|
33
|
+
* // visibilityClasses: 'is-hidden-mobile is-flex'
|
|
34
|
+
*/
|
|
10
35
|
export declare const useVisibilityClasses: (props: BulmaVisibilityProps) => string;
|
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Attaches compound sub-components as statics on a base component and
|
|
3
|
+
* optionally sets the parent's displayName.
|
|
4
|
+
*
|
|
5
|
+
* Internal helper — it MUST mutate and return the same function object
|
|
6
|
+
* (`Object.assign`), never wrap the base in a new function: identity checks
|
|
7
|
+
* like `child.type === ModalCard` (Modal) and Field's displayName-based
|
|
8
|
+
* child detection rely on the attached component being the same object as
|
|
9
|
+
* the separately exported one.
|
|
10
|
+
*
|
|
11
|
+
* displayName is only ever set on the parent (and only when provided) —
|
|
12
|
+
* sub-components keep whatever displayName they declare themselves.
|
|
13
|
+
*/
|
|
1
14
|
export declare function withSubComponents<Base extends {
|
|
2
15
|
displayName?: string;
|
|
3
16
|
}, Subs extends Record<string, unknown>>(base: Base, subs: Subs, displayName?: string): Base & Subs;
|
|
@@ -1,17 +1,46 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BulmaClassesProps, validColors } from '../helpers/useBulmaClasses';
|
|
3
|
+
/**
|
|
4
|
+
* Bulma container breakpoints.
|
|
5
|
+
*/
|
|
3
6
|
export type ContainerBreakpoint = 'tablet' | 'desktop' | 'widescreen';
|
|
7
|
+
/**
|
|
8
|
+
* Props for the Container component.
|
|
9
|
+
*/
|
|
4
10
|
export interface ContainerProps extends React.HTMLAttributes<HTMLDivElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
|
|
11
|
+
/** Additional CSS classes. */
|
|
5
12
|
className?: string;
|
|
13
|
+
/** Text color helper. */
|
|
6
14
|
textColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
15
|
+
/**
|
|
16
|
+
* Text color alias: renders `has-text-<color>`, exactly like `textColor`.
|
|
17
|
+
* Not a filled variant (no `.container.is-<color>` CSS exists). Prefer
|
|
18
|
+
* `textColor`, which takes precedence when both are set; use `bgColor` for
|
|
19
|
+
* a colored surface.
|
|
20
|
+
*/
|
|
7
21
|
color?: 'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger';
|
|
22
|
+
/** Background color helper. */
|
|
8
23
|
bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
24
|
+
/** Makes the container full-width with a 32px gap on each side. */
|
|
9
25
|
fluid?: boolean;
|
|
26
|
+
/** Makes the container full-width until the `widescreen` breakpoint. */
|
|
10
27
|
widescreen?: boolean;
|
|
28
|
+
/** Makes the container full-width until the `fullhd` breakpoint. */
|
|
11
29
|
fullhd?: boolean;
|
|
30
|
+
/** Responsive breakpoint for container (`is-tablet`, `is-desktop`, `is-widescreen`). */
|
|
12
31
|
breakpoint?: ContainerBreakpoint;
|
|
32
|
+
/** Uses Bulma's `is-max-*` class for the specified breakpoint, limiting max width. */
|
|
13
33
|
isMax?: boolean;
|
|
34
|
+
/** Content inside the container. */
|
|
14
35
|
children?: React.ReactNode;
|
|
15
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* The `Container` component provides a responsive and flexible layout wrapper for your Bulma React UI.
|
|
39
|
+
*
|
|
40
|
+
* @function
|
|
41
|
+
* @param {ContainerProps} props - Props for the Container component.
|
|
42
|
+
* @returns {JSX.Element} The rendered container.
|
|
43
|
+
* @see {@link https://bulma.io/documentation/layout/container/ | Bulma Container documentation}
|
|
44
|
+
*/
|
|
16
45
|
export declare const Container: React.FC<ContainerProps>;
|
|
17
46
|
export default Container;
|
|
@@ -1,12 +1,34 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BulmaClassesProps, validColors } from '../helpers/useBulmaClasses';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the Footer component.
|
|
5
|
+
*/
|
|
3
6
|
export interface FooterProps extends React.HTMLAttributes<HTMLElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
|
|
7
|
+
/** The HTML tag to render as. */
|
|
4
8
|
as?: 'footer' | 'div';
|
|
9
|
+
/** Bulma color modifier. */
|
|
5
10
|
color?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
11
|
+
/** Background color. */
|
|
6
12
|
bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
13
|
+
/** Text color. */
|
|
7
14
|
textColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
15
|
+
/** Additional CSS classes. */
|
|
8
16
|
className?: string;
|
|
17
|
+
/** Content inside the footer. */
|
|
9
18
|
children?: React.ReactNode;
|
|
10
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* The `Footer` component provides a semantic and accessible site footer for your Bulma React UI.
|
|
22
|
+
*
|
|
23
|
+
* @function
|
|
24
|
+
* @param {FooterProps} props - Props for the Footer component.
|
|
25
|
+
* @returns {JSX.Element} The rendered footer element.
|
|
26
|
+
* @see {@link https://bulma.io/documentation/layout/footer/ | Bulma Footer documentation}
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* <Footer>
|
|
30
|
+
* <div className="content has-text-centered">...</div>
|
|
31
|
+
* </Footer>
|
|
32
|
+
*/
|
|
11
33
|
export declare const Footer: React.FC<FooterProps>;
|
|
12
34
|
export default Footer;
|
|
@@ -1,37 +1,104 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BulmaClassesProps, validColors } from '../helpers/useBulmaClasses';
|
|
3
|
+
/**
|
|
4
|
+
* Possible values for Bulma hero size.
|
|
5
|
+
*/
|
|
3
6
|
export type HeroSize = 'small' | 'medium' | 'large' | 'fullheight' | 'fullheight-with-navbar';
|
|
7
|
+
/**
|
|
8
|
+
* Props for the Hero component.
|
|
9
|
+
*/
|
|
4
10
|
export interface HeroProps extends React.HTMLAttributes<HTMLElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
|
|
11
|
+
/** Additional CSS classes. */
|
|
5
12
|
className?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Bulma color modifier for the hero section (renders `is-<color>`).
|
|
15
|
+
*
|
|
16
|
+
* Only `primary`, `link`, `info`, `success`, `warning`, `danger`, `black`,
|
|
17
|
+
* `white`, `light`, and `dark` have shipped CSS for `.hero`. The other
|
|
18
|
+
* accepted values (`black-bis`, `black-ter`, `grey-darker`, `grey-dark`,
|
|
19
|
+
* `grey`, `grey-light`, `grey-lighter`, `inherit`, `current`) emit a class
|
|
20
|
+
* no CSS rule matches, so the hero renders unstyled; they log a console
|
|
21
|
+
* warning in development and will be removed from this union in the next
|
|
22
|
+
* major version.
|
|
23
|
+
*/
|
|
6
24
|
color?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
25
|
+
/** Hero size. */
|
|
7
26
|
size?: HeroSize;
|
|
27
|
+
/** Bulma background color helper. */
|
|
8
28
|
bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
29
|
+
/** Use fullheight hero with a navbar offset. */
|
|
9
30
|
fullheightWithNavbar?: boolean;
|
|
31
|
+
/** Hero content (often includes `Hero.Head`, `Hero.Body`, `Hero.Foot`). */
|
|
10
32
|
children?: React.ReactNode;
|
|
11
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* Props for the HeroHead component.
|
|
36
|
+
*/
|
|
12
37
|
export interface HeroHeadProps extends React.HTMLAttributes<HTMLDivElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
|
|
38
|
+
/** Additional CSS classes. */
|
|
13
39
|
className?: string;
|
|
40
|
+
/** Bulma color modifier for text. */
|
|
14
41
|
color?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
42
|
+
/** Background color. */
|
|
15
43
|
bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
44
|
+
/** Text color. */
|
|
16
45
|
textColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
46
|
+
/** Content. */
|
|
17
47
|
children?: React.ReactNode;
|
|
18
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* Top bar for navigation or branding.
|
|
51
|
+
*
|
|
52
|
+
* @function
|
|
53
|
+
* @param {HeroHeadProps} props - Props for the HeroHead component.
|
|
54
|
+
* @returns {JSX.Element} The rendered hero head.
|
|
55
|
+
*/
|
|
19
56
|
export declare const HeroHead: React.FC<HeroHeadProps>;
|
|
57
|
+
/**
|
|
58
|
+
* Props for the HeroBody component.
|
|
59
|
+
*/
|
|
20
60
|
export interface HeroBodyProps extends React.HTMLAttributes<HTMLDivElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
|
|
61
|
+
/** Additional CSS classes. */
|
|
21
62
|
className?: string;
|
|
63
|
+
/** Bulma color modifier for text. */
|
|
22
64
|
color?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
65
|
+
/** Background color. */
|
|
23
66
|
bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
67
|
+
/** Text color. */
|
|
24
68
|
textColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
69
|
+
/** Content. */
|
|
25
70
|
children?: React.ReactNode;
|
|
26
71
|
}
|
|
72
|
+
/**
|
|
73
|
+
* Main content area, vertically centered by default.
|
|
74
|
+
*
|
|
75
|
+
* @function
|
|
76
|
+
* @param {HeroBodyProps} props - Props for the HeroBody component.
|
|
77
|
+
* @returns {JSX.Element} The rendered hero body.
|
|
78
|
+
*/
|
|
27
79
|
export declare const HeroBody: React.FC<HeroBodyProps>;
|
|
80
|
+
/**
|
|
81
|
+
* Props for the HeroFoot component.
|
|
82
|
+
*/
|
|
28
83
|
export interface HeroFootProps extends React.HTMLAttributes<HTMLDivElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
|
|
84
|
+
/** Additional CSS classes. */
|
|
29
85
|
className?: string;
|
|
86
|
+
/** Bulma color modifier for text. */
|
|
30
87
|
color?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
88
|
+
/** Background color. */
|
|
31
89
|
bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
90
|
+
/** Text color. */
|
|
32
91
|
textColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
92
|
+
/** Content. */
|
|
33
93
|
children?: React.ReactNode;
|
|
34
94
|
}
|
|
95
|
+
/**
|
|
96
|
+
* Bottom bar for tabs or actions.
|
|
97
|
+
*
|
|
98
|
+
* @function
|
|
99
|
+
* @param {HeroFootProps} props - Props for the HeroFoot component.
|
|
100
|
+
* @returns {JSX.Element} The rendered hero foot.
|
|
101
|
+
*/
|
|
35
102
|
export declare const HeroFoot: React.FC<HeroFootProps>;
|
|
36
103
|
export declare const Hero: React.FC<HeroProps> & {
|
|
37
104
|
Head: React.FC<HeroHeadProps>;
|
|
@@ -1,41 +1,101 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BulmaClassesProps, validColors } from '../helpers/useBulmaClasses';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the Level component.
|
|
5
|
+
*/
|
|
3
6
|
export interface LevelProps extends React.HTMLAttributes<HTMLElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
|
|
7
|
+
/** Keeps the level horizontal on mobile (Bulma `is-mobile`). Without it
|
|
8
|
+
* the level stacks vertically below tablet. */
|
|
4
9
|
isMobile?: boolean;
|
|
10
|
+
/** Bulma color modifier for the level. */
|
|
5
11
|
color?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
12
|
+
/** Bulma background color helper. */
|
|
6
13
|
bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
14
|
+
/** Bulma text color helper. */
|
|
7
15
|
textColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
16
|
+
/** Additional CSS classes. */
|
|
8
17
|
className?: string;
|
|
18
|
+
/** Level content (`Level.Left`, `Level.Right`, `Level.Item`). */
|
|
9
19
|
children?: React.ReactNode;
|
|
10
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* Props for the LevelLeft component.
|
|
23
|
+
*/
|
|
11
24
|
export interface LevelLeftProps extends React.HTMLAttributes<HTMLDivElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
|
|
25
|
+
/** Bulma color modifier. */
|
|
12
26
|
color?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
27
|
+
/** Background color. */
|
|
13
28
|
bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
29
|
+
/** Text color. */
|
|
14
30
|
textColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
31
|
+
/** Additional CSS classes. */
|
|
15
32
|
className?: string;
|
|
33
|
+
/** Content. */
|
|
16
34
|
children?: React.ReactNode;
|
|
17
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* Left-aligned content.
|
|
38
|
+
*
|
|
39
|
+
* @function
|
|
40
|
+
* @param {LevelLeftProps} props - Props for the LevelLeft component.
|
|
41
|
+
* @returns {JSX.Element} The rendered level left section.
|
|
42
|
+
*/
|
|
18
43
|
export declare const LevelLeft: React.FC<LevelLeftProps>;
|
|
44
|
+
/**
|
|
45
|
+
* Props for the LevelRight component.
|
|
46
|
+
*/
|
|
19
47
|
export interface LevelRightProps extends React.HTMLAttributes<HTMLDivElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
|
|
48
|
+
/** Bulma color modifier. */
|
|
20
49
|
color?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
50
|
+
/** Background color. */
|
|
21
51
|
bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
52
|
+
/** Text color. */
|
|
22
53
|
textColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
54
|
+
/** Additional CSS classes. */
|
|
23
55
|
className?: string;
|
|
56
|
+
/** Content. */
|
|
24
57
|
children?: React.ReactNode;
|
|
25
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
* Right-aligned content.
|
|
61
|
+
*
|
|
62
|
+
* @function
|
|
63
|
+
* @param {LevelRightProps} props - Props for the LevelRight component.
|
|
64
|
+
* @returns {JSX.Element} The rendered level right section.
|
|
65
|
+
*/
|
|
26
66
|
export declare const LevelRight: React.FC<LevelRightProps>;
|
|
67
|
+
/**
|
|
68
|
+
* Props for the LevelItem component.
|
|
69
|
+
*/
|
|
27
70
|
export interface LevelItemProps extends React.HTMLAttributes<HTMLDivElement | HTMLParagraphElement | HTMLAnchorElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
|
|
71
|
+
/** Element type to render. */
|
|
28
72
|
as?: 'div' | 'p' | 'a';
|
|
73
|
+
/** Center the text in the item. */
|
|
29
74
|
hasTextCentered?: boolean;
|
|
75
|
+
/** Bulma color modifier. */
|
|
30
76
|
color?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
77
|
+
/** Background color. */
|
|
31
78
|
bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
79
|
+
/** Text color. */
|
|
32
80
|
textColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
81
|
+
/** Additional CSS classes. */
|
|
33
82
|
className?: string;
|
|
83
|
+
/** Content. */
|
|
34
84
|
children?: React.ReactNode;
|
|
85
|
+
/** Href for "a" tag. */
|
|
35
86
|
href?: string;
|
|
87
|
+
/** Target for "a" tag */
|
|
36
88
|
target?: string;
|
|
89
|
+
/** Rel for "a" tag */
|
|
37
90
|
rel?: string;
|
|
38
91
|
}
|
|
92
|
+
/**
|
|
93
|
+
* Individual item, can be rendered as `div`, `p`, or `a`.
|
|
94
|
+
*
|
|
95
|
+
* @function
|
|
96
|
+
* @param {LevelItemProps} props - Props for the LevelItem component.
|
|
97
|
+
* @returns {JSX.Element} The rendered level item.
|
|
98
|
+
*/
|
|
39
99
|
export declare const LevelItem: React.FC<LevelItemProps>;
|
|
40
100
|
export declare const Level: React.FC<LevelProps> & {
|
|
41
101
|
Left: React.FC<LevelLeftProps>;
|
|
@@ -1,38 +1,94 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BulmaClassesProps, validColors } from '../helpers/useBulmaClasses';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the Media component.
|
|
5
|
+
*/
|
|
3
6
|
export interface MediaProps extends React.HTMLAttributes<HTMLElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
|
|
7
|
+
/** Element type for the root Media container. */
|
|
4
8
|
as?: 'article' | 'div';
|
|
9
|
+
/** Bulma color modifier. */
|
|
5
10
|
color?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
11
|
+
/** Bulma background color helper. */
|
|
6
12
|
bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
13
|
+
/** Bulma text color helper. */
|
|
7
14
|
textColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
15
|
+
/** Additional CSS classes. */
|
|
8
16
|
className?: string;
|
|
17
|
+
/** Content inside the media container. */
|
|
9
18
|
children?: React.ReactNode;
|
|
10
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* Props for the MediaLeft component.
|
|
22
|
+
*/
|
|
11
23
|
export interface MediaLeftProps extends React.HTMLAttributes<HTMLElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
|
|
24
|
+
/** Element type to render. */
|
|
12
25
|
as?: 'figure' | 'div';
|
|
26
|
+
/** Bulma color modifier. */
|
|
13
27
|
color?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
28
|
+
/** Background color. */
|
|
14
29
|
bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
30
|
+
/** Text color. */
|
|
15
31
|
textColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
32
|
+
/** Additional CSS classes. */
|
|
16
33
|
className?: string;
|
|
34
|
+
/** Content. */
|
|
17
35
|
children?: React.ReactNode;
|
|
18
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* For avatars, thumbnails, icons (renders as `figure` or `div`)
|
|
39
|
+
*
|
|
40
|
+
* @function
|
|
41
|
+
* @param {MediaLeftProps} props - Props for the MediaLeft component.
|
|
42
|
+
* @returns {JSX.Element} The rendered media left section.
|
|
43
|
+
*/
|
|
19
44
|
export declare const MediaLeft: React.FC<MediaLeftProps>;
|
|
45
|
+
/**
|
|
46
|
+
* Props for the MediaContent component.
|
|
47
|
+
*/
|
|
20
48
|
export interface MediaContentProps extends React.HTMLAttributes<HTMLDivElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
|
|
49
|
+
/** Bulma color modifier. */
|
|
21
50
|
color?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
51
|
+
/** Background color. */
|
|
22
52
|
bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
53
|
+
/** Text color. */
|
|
23
54
|
textColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
55
|
+
/** Additional CSS classes. */
|
|
24
56
|
className?: string;
|
|
57
|
+
/** Content. */
|
|
25
58
|
children?: React.ReactNode;
|
|
26
59
|
}
|
|
60
|
+
/**
|
|
61
|
+
* Main content (renders as `div`)
|
|
62
|
+
*
|
|
63
|
+
* @function
|
|
64
|
+
* @param {MediaContentProps} props - Props for the MediaContent component.
|
|
65
|
+
* @returns {JSX.Element} The rendered media content section.
|
|
66
|
+
*/
|
|
27
67
|
export declare const MediaContent: React.FC<MediaContentProps>;
|
|
68
|
+
/**
|
|
69
|
+
* Props for the MediaRight component.
|
|
70
|
+
*/
|
|
28
71
|
export interface MediaRightProps extends React.HTMLAttributes<HTMLDivElement>, Omit<BulmaClassesProps, 'color' | 'backgroundColor'> {
|
|
72
|
+
/** Bulma color modifier. */
|
|
29
73
|
color?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
74
|
+
/** Background color. */
|
|
30
75
|
bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
76
|
+
/** Text color. */
|
|
31
77
|
textColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
78
|
+
/** Additional CSS classes. */
|
|
32
79
|
className?: string;
|
|
80
|
+
/** Content. */
|
|
33
81
|
children?: React.ReactNode;
|
|
34
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
* Actions or controls (renders as `div`)
|
|
85
|
+
*
|
|
86
|
+
* @function
|
|
87
|
+
* @param {MediaRightProps} props - Props for the MediaRight component.
|
|
88
|
+
* @returns {JSX.Element} The rendered media right section.
|
|
89
|
+
*/
|
|
35
90
|
export declare const MediaRight: React.FC<MediaRightProps>;
|
|
91
|
+
/** Media component with Left, Content, and Right sub-components. */
|
|
36
92
|
export declare const Media: React.FC<MediaProps> & {
|
|
37
93
|
Left: React.FC<MediaLeftProps>;
|
|
38
94
|
Content: React.FC<MediaContentProps>;
|
|
@@ -1,13 +1,33 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BulmaClassesProps, validColors } from '../helpers/useBulmaClasses';
|
|
3
|
+
/**
|
|
4
|
+
* Section size values for Bulma.
|
|
5
|
+
*/
|
|
3
6
|
type SectionSize = 'medium' | 'large';
|
|
7
|
+
/**
|
|
8
|
+
* Props for the Section component.
|
|
9
|
+
*/
|
|
4
10
|
export interface SectionProps extends React.HTMLAttributes<HTMLElement>, Omit<BulmaClassesProps, 'backgroundColor' | 'color'> {
|
|
11
|
+
/** Bulma color modifier for text. */
|
|
5
12
|
color?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
13
|
+
/** Bulma background color helper. */
|
|
6
14
|
bgColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
15
|
+
/** Bulma text color helper. */
|
|
7
16
|
textColor?: (typeof validColors)[number] | 'inherit' | 'current';
|
|
17
|
+
/** Section size for extra vertical spacing. */
|
|
8
18
|
size?: SectionSize;
|
|
19
|
+
/** Additional CSS classes. */
|
|
9
20
|
className?: string;
|
|
21
|
+
/** Section content. */
|
|
10
22
|
children?: React.ReactNode;
|
|
11
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* The `Section` component provides vertical spacing and visual separation for your Bulma React UI.
|
|
26
|
+
*
|
|
27
|
+
* @function
|
|
28
|
+
* @param {SectionProps} props - Props for the Section component.
|
|
29
|
+
* @returns {JSX.Element} The rendered section.
|
|
30
|
+
* @see {@link https://bulma.io/documentation/layout/section/ | Bulma Section documentation}
|
|
31
|
+
*/
|
|
12
32
|
export declare const Section: React.FC<SectionProps>;
|
|
13
33
|
export {};
|