8.4.4 • Published 12 months ago

@lendi-ui/button v8.4.4

Weekly downloads
1,159
License
ISC
Repository
-
Last release
12 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.4

12 months ago

8.4.3

2 years ago

8.4.2

2 years ago

8.4.1

3 years ago

8.4.2-beta.0

2 years ago

8.4.2-beta.1

2 years ago

8.3.11

3 years ago

8.4.0

3 years ago

8.3.11-beta.0

3 years ago

8.4.1-beta.0

3 years ago

8.3.10-beta.0

3 years ago

8.3.11-canary.0

3 years ago

8.3.9

3 years ago

8.3.10

3 years ago

8.3.9-beta.0

3 years ago

8.3.7-beta.3

3 years ago

8.3.7-beta.0

3 years ago

8.3.7-beta.1

3 years ago

8.3.7-beta.2

3 years ago

8.3.8-canary.2

3 years ago

8.3.6

3 years ago

8.3.8

3 years ago

8.3.7

3 years ago

9.0.0-beta.2

3 years ago

8.3.6-beta.3

3 years ago

8.3.6-beta.2

3 years ago

8.3.8-beta.1

3 years ago

8.3.8-beta.0

3 years ago

8.3.6-beta.1

3 years ago

8.3.6-beta.0

3 years ago

8.3.5

3 years ago

8.3.4-beta.0

3 years ago

8.3.4

3 years ago

8.3.0

3 years ago

8.3.2

3 years ago

8.3.1

3 years ago

8.3.3

3 years ago

8.2.18

4 years ago

8.2.17

4 years ago

8.2.16

4 years ago

8.2.15

4 years ago

8.2.14

4 years ago

8.2.13

4 years ago

8.2.12

4 years ago

8.2.11

5 years ago

8.2.10

5 years ago

8.2.9

5 years ago

8.2.8

5 years ago

8.2.7

5 years ago

8.2.6

5 years ago

8.2.5

5 years ago

8.2.4

5 years ago

8.2.3

5 years ago

8.2.2

5 years ago

8.2.1

5 years ago

8.2.0

5 years ago

9.0.0-beta.0

5 years ago

8.1.0

5 years ago

8.0.2

6 years ago

8.0.1

6 years ago

8.0.0

6 years ago

7.0.2

6 years ago

7.0.1

6 years ago

7.0.0

6 years ago

7.0.0-alpha

6 years ago

6.1.0

6 years ago

6.0.2

6 years ago

6.0.1

6 years ago

6.0.0

6 years ago

5.4.0

6 years ago

5.3.3

6 years ago

5.3.2

6 years ago

5.3.1

6 years ago

5.3.0

6 years ago

5.2.1

6 years ago

5.2.0

6 years ago

5.2.0-alpha.2

6 years ago

5.2.0-alpha.1

6 years ago

5.2.0-alpha.0

6 years ago

5.1.5

6 years ago

5.1.4

6 years ago

5.1.3

6 years ago

5.1.2

6 years ago

5.1.1

6 years ago

5.1.0

6 years ago

5.0.0

6 years ago

4.5.0

6 years ago

4.4.0

6 years ago

4.3.3

6 years ago

4.3.2

6 years ago

4.3.1

6 years ago

4.3.0

6 years ago

4.2.1

7 years ago

4.2.0

7 years ago

4.1.2

7 years ago

4.1.1

7 years ago

4.1.0

7 years ago

4.0.0

7 years ago

3.0.1

7 years ago

3.0.0

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago