- {['primary', 'secondary', 'tertiary', 'danger'].map(
- (variant, index) => (
-
- {['lg', 'md', 'sm', 'xs', 'disabled'].map((size) => (
-
}
- rightIcon={
}
- variant={variant as ButtonOrLinkProps['variant']}
- size={
- size !== 'disabled'
- ? (size as ButtonOrLinkProps['size'])
- : 'md'
- }
- key={`${variant}-${size}`}
- disabled={size === 'disabled'}
- >
- Button
-
- ))}
-
- ),
- )}
- {[
- 'primary',
- 'secondary',
- 'tertiary',
- 'ghost',
- 'danger',
- 'danger-ghost',
- ].map((variant, index) => (
-
- {['lg', 'md', 'sm', 'xs', 'disabled'].map((size) => (
-
- ))}
-
- ))}
+ {renderButtons()}
+ {renderButtonIcons()}
Badge
-
- {['primary', 'secondary', 'tertiary', 'inset'].map(
- (variant, index) => (
-
- {['sm', 'xs'].map((size) => (
-
- 1
-
- ))}
-
- ),
- )}
-
+
{renderBadges()}
Checkbox
+
{renderCheckbox()}
- {Array.from({ length: 5 }).map((_, index) => (
-
- ))}
-
-
- {Array.from({ length: 2 }).map((_, index) => (
-
- ))}
+ {renderCheckboxWithDescription()}