Skip to content

Commit

Permalink
docs: updated base dialog readme
Browse files Browse the repository at this point in the history
  • Loading branch information
oxala committed Oct 11, 2023
1 parent b7f4bc8 commit cf8165d
Showing 1 changed file with 23 additions and 22 deletions.
45 changes: 23 additions & 22 deletions src/ebay-dialog-base/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,34 @@

```react
<DialogBase
open
a11yClosetext = "Close DialogBase"
onCloseBtnClick={ handleCloseBtnClick }>
<h1>Hello World</h1>
open
a11yCloseText="Close Dialog Base"
onCloseBtnClick={handleCloseBtnClick}
>
<h1>Hello World</h1>
</DialogBase>
```

## Attributes

| Name | Type | Stateful | Required | Description |
|------------------|---------------------------|----------|----------|----------------------------------------------------------------------------------------------|
| `baseEl` | string | No | No | --- div' , 'span', 'aside' |
| `open` | Boolean | Yes | No | Whether drawer is open. |
| `classPrefix` | drawer or toast or dialog | No | No | "" (default) / modifies the base prefix for all classes in the component |
| `windowClass` | String | No | No | "" (default) / modifies the base prefix for all Skin classes in the component |
| `header` | String | No | No | element placeholder |
| `footer` | String | No | No | element placeholder |
| `isModal` | Boolean | No | No | Whether drawer is model. |
| `top` | --- | --- | --- | --- |
| `buttonPosition` | string | --- | --- | top or right or bottom or left |
| `a11yCloseText` | String | No | No* | A11y text for close button and mask. Required only when close button exists. |
| `animated` | Boolean | Yes | No | Renders the dialog with an animation. Note that the dialog will always be present in the DOM |
| Name | Type | Stateful | Required | Description |
| ------------------ | --------------------------- | -------- | -------- | -------------------------------------------------------------------------------------------- |
| `baseEl` | String | No | No | 'div', 'span', 'aside' |
| `open` | Boolean | Yes | No | Whether drawer is open. |
| `classPrefix` | 'drawer', 'toast', 'dialog' | No | No | "" (default) / modifies the base prefix for all classes in the component |
| `windowClass` | String | No | No | "" (default) / modifies the base prefix for all Skin classes in the component |
| `header` | String | No | No | element placeholder |
| `footer` | String | No | No | element placeholder |
| `isModal` | Boolean | No | No | Whether drawer is model. |
| `top` | --- | --- | --- | --- |
| `buttonPosition` | String | --- | --- | top or right or bottom or left |
| `a11yCloseText` | String | No | No\* | A11y text for close button and mask. Required only when close button exists. |
| `animated` | Boolean | Yes | No | Renders the dialog with an animation. Note that the dialog will always be present in the DOM |
| `closeButtonClass` | String | No | No | Sets custom className on a close button element |

## Events

Event | Data | Description
`onCloseBtnClick` | --- | --- | --- | ---
`OnBackgroundClick` | --- | --- | --- | ---
| Event | Data | Description |
| ------------------- | ---- | ----------- |
| `onCloseBtnClick` | --- | --- |
| `onBackgroundClick` | --- | --- |

0 comments on commit cf8165d

Please sign in to comment.