Multi-part button
Last updated: 3.0.0 (04/07/2024)
Usage
import { MultipartButton } from "@valence-ui/core";
import { IconPlus } from "@tabler/icons-react";
function MyComponent() {
return (
<MultipartButton
title="This is a multi-part button!"
subtitle="Isn't that cool?"
leftIcon={<IconPlus />}
/>
)
}Adding a right icon
import { MultipartButton } from "@valence-ui/core";
import { IconPlus, IconChevronRight } from "@tabler/icons-react";
function MyComponent() {
return (
<MultipartButton
title="This is a multi-part button!"
subtitle="Isn't that cool?"
leftIcon={<IconPlus />}
rightIcon={<IconChevronRight />}
/>
)
}Modifying the title or subtitle
Props
Property
Type
Description
Changelog
Last updated