8.4.3 • Published 10 months ago

@lendi-ui/button v8.4.3

Weekly downloads
1,159
License
ISC
Repository
-
Last release
10 months ago

@lendi-ui/button

Including Button and ButtonGroup two component.

Installation

yarn add @lendi-ui/button

Usage

  • Button
import { Button } from '@lendi-ui/button';
<Button variant="primary">Continue</Button>;
  • Button
import { ButtonGroup } from '@lendi-ui/button';
<ButtonGroup size="sm">
  <ButtonGroup.Button variant="secondary">&lt;</ButtonGroup.Button>
  <ButtonGroup.Button variant="primary">Continue</ButtonGroup.Button>
</ButtonGroup>;

Properties

  • Button
<PropTable>
  <PropTable.Entry name="after" type="React.ReactNode" description="Content after the button label"/>
  <PropTable.Entry name="ariaLabel" type="string" description="Ensure you add a label for buttons that do not contain text. If not provided (and the children of button is text) this is automatically added"/>
  <PropTable.Entry name="before" type="React.ReactNode" description="Content before the button label"/>
  <PropTable.Entry name="children" type="React.ReactNode" description="The button content"/>
  <PropTable.Entry name="className"  defaultValue="" type="string" description="External classname to override style of the component"/>
  <PropTable.Entry name="href" type="string" description="URL to link to"/>
  <PropTable.Entry name="isDisabled" type="boolean" defaultValue={false} description="Whether the button responds to user input"/>
  <PropTable.Entry name="isFullWidth" type="boolean" defaultValue={false} description="Whether the button takes up the full width of the container"/>
  <PropTable.Entry name="isInverse" type="boolean" defaultValue={false} description="Whether the button is inversed"/>
  <PropTable.Entry name="onClick" type="() => void" description="Handle the click event"/>
  <PropTable.Entry name="size" type={`"xs" | "sm" | "md" | "lg"`} defaultValue="md" description="The button size"/>
  <PropTable.Entry name="variant" type={`"primary" | "secondary" | "emphasis" | "empty"`} description="The button type"/>
</PropTable>

ButtonGroup Properties

<PropTable>
  <PropTable.Entry name="children" type="React.ReactElement<ButtonGroupButtonProps>" description="The buttons"/>
  <PropTable.Entry name="className" defaultValue="" type="string" description="External classname to override style of the component"/>
  <PropTable.Entry name="isDisabled" type="boolean" defaultValue={false} description="Disabling the ButtonGroup"/>
  <PropTable.Entry name="isFullWidth" type="boolean" defaultValue={false} description="Buttons take up the max width of parent"/>
  <PropTable.Entry name="isInverse" type="boolean" defaultValue={false} description="Switches the foreground and background colours"/>
  <PropTable.Entry name="size" type={`"xs" | "sm" | "md" | "lg"`} defaultValue="md" description="The buttons size"/>
</PropTable>

ButtonGroup.Button Properties

<PropTable>
  <PropTable.Entry name="after" type="React.ReactNode" description="Content after the button label"/>
  <PropTable.Entry name="before" type="React.ReactNode" description="Content before the button label"/>
  <PropTable.Entry name="children" type="React.ReactNode" description="The button content"/>
  <PropTable.Entry name="href" type="string" description="URL to link to"/>
  <PropTable.Entry name="isDisabled" type="boolean" defaultValue={false} description="Whether the button responds to user input"/>
  <PropTable.Entry name="onClick" type="() => void" description="Handle the click event"/>
  <PropTable.Entry name="variant" type={`"primary" | "secondary" | "emphasis" | "empty"`} description="The button type"/>
</PropTable>
8.4.3

10 months ago

8.4.2

1 year ago

8.4.1

1 year ago

8.4.2-beta.0

1 year ago

8.4.2-beta.1

1 year ago

8.3.11

2 years ago

8.4.0

2 years ago

8.3.11-beta.0

2 years ago

8.4.1-beta.0

2 years ago

8.3.10-beta.0

2 years ago

8.3.11-canary.0

2 years ago

8.3.9

2 years ago

8.3.10

2 years ago

8.3.9-beta.0

2 years ago

8.3.7-beta.3

2 years ago

8.3.7-beta.0

2 years ago

8.3.7-beta.1

2 years ago

8.3.7-beta.2

2 years ago

8.3.8-canary.2

2 years ago

8.3.6

2 years ago

8.3.8

2 years ago

8.3.7

2 years ago

9.0.0-beta.2

2 years ago

8.3.6-beta.3

2 years ago

8.3.6-beta.2

2 years ago

8.3.8-beta.1

2 years ago

8.3.8-beta.0

2 years ago

8.3.6-beta.1

2 years ago

8.3.6-beta.0

2 years ago

8.3.5

2 years ago

8.3.4-beta.0

2 years ago

8.3.4

2 years ago

8.3.0

2 years ago

8.3.2

2 years ago

8.3.1

2 years ago

8.3.3

2 years ago

8.2.18

3 years ago

8.2.17

3 years ago

8.2.16

3 years ago

8.2.15

3 years ago

8.2.14

3 years ago

8.2.13

3 years ago

8.2.12

3 years ago

8.2.11

4 years ago

8.2.10

4 years ago

8.2.9

4 years ago

8.2.8

4 years ago

8.2.7

4 years ago

8.2.6

4 years ago

8.2.5

4 years ago

8.2.4

4 years ago

8.2.3

4 years ago

8.2.2

4 years ago

8.2.1

4 years ago

8.2.0

4 years ago

9.0.0-beta.0

4 years ago

8.1.0

4 years ago

8.0.2

4 years ago

8.0.1

4 years ago

8.0.0

5 years ago

7.0.2

5 years ago

7.0.1

5 years ago

7.0.0

5 years ago

7.0.0-alpha

5 years ago

6.1.0

5 years ago

6.0.2

5 years ago

6.0.1

5 years ago

6.0.0

5 years ago

5.4.0

5 years ago

5.3.3

5 years ago

5.3.2

5 years ago

5.3.1

5 years ago

5.3.0

5 years ago

5.2.1

5 years ago

5.2.0

5 years ago

5.2.0-alpha.2

5 years ago

5.2.0-alpha.1

5 years ago

5.2.0-alpha.0

5 years ago

5.1.5

5 years ago

5.1.4

5 years ago

5.1.3

5 years ago

5.1.2

5 years ago

5.1.1

5 years ago

5.1.0

5 years ago

5.0.0

5 years ago

4.5.0

5 years ago

4.4.0

5 years ago

4.3.3

5 years ago

4.3.2

5 years ago

4.3.1

5 years ago

4.3.0

5 years ago

4.2.1

5 years ago

4.2.0

6 years ago

4.1.2

6 years ago

4.1.1

6 years ago

4.1.0

6 years ago

4.0.0

6 years ago

3.0.1

6 years ago

3.0.0

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago