Button
Versatile Component
Import
import { Button } from "@prismane/core";
Usage
By default, Button
uses the primary
variant.
<Button>Button</Button>
Button Variants
<> <Button variant="primary">Primary Variant</Button> <Button variant="secondary">Secondary Variant</Button> <Button variant="tertiary">Tertiary Variants</Button> <Button variant="text">Text Variant</Button> </>
Button Sizes
<> <Button size="xs">xs Size</Button> <Button size="sm">sm Size</Button> <Button size="base">base Size</Button> <Button size="md">md Size</Button> <Button size="lg">lg Size</Button> </>
Button With Icon
<Button icon={<Heart />}>Much Love</Button>
Button With Shadow
<Button shadow>Shadow Button</Button>
Full Width Button
<Button full>Full Width Button</Button>
Fill On Hover Button
<Button variant="tertiary" color="red" fillOnHover> Delete Post </Button>
Button Loading
<> <Button variant="primary" loading> Loading </Button> <Button variant="secondary" loading> Loading </Button> <Button variant="tertiary" loading> Loading </Button> <Button variant="text" loading> Loading </Button> </>
Button Color
<> <Button color="base">Base</Button> <Button color="lime">Lime</Button> <Button color="diamond">Diamond</Button> <Button color="ruby">Ruby</Button> </>
Customized Button
<Button icon={<Heart />} variant="secondary" color="teal" br="full"> Much Love </Button>
Versatile Component
<Button as="strong">Versatile Button</Button>
API
Please refer to the documentation below for a comprehensive overview of all the available props and classes for the mentioned components.
- -
Button