.. | ||
index.tsx | ||
README.md | ||
SelectorAddButton.stories.tsx | ||
SelectorAddButton.styled.ts | ||
SelectorAddButton.test.tsx | ||
SelectorAddButton.tsx | ||
SelectorAddButton.types.tsx |
SelectorAddButton
Usage
import { SelectorAddButton } from "@docspace/shared/components";
<SelectorAddButton
title="Add item"
onClick={() => console.log("onClose")}
></SelectorAddButton>
Properties
Props | Type | Required | Values | Default | Description |
---|---|---|---|---|---|
className |
string |
- | - | - | Attribute className |
id |
string |
- | - | - | Accepts id |
isDisabled |
bool |
- | - | false |
Tells when the button should present a disabled state |
onClick |
function |
- | - | - | What the button will trigger when clicked |
style |
obj , array |
- | - | - | Accepts css style |
title |
string |
- | - | - | Title text |