DocSpace-client/packages/components/access-right-select/access-right-select.mdx
2023-05-31 20:00:04 +05:00

56 lines
987 B
Plaintext

import { Meta, Story, ArgsTable, Canvas } from "@storybook/blocks";
import AccessRightSelect from "./";
import * as stories from "./access-right-select.stories.js";
<Meta
title="Components/AccessRightSelect"
component={AccessRightSelect}
argTypes={{
onSelect: {
action: "onSelect",
},
options: { required: true },
}}
/>
# AccessRightSelect
Custom access-right-select
<Canvas>
<Story of={stories.Default} name="Default" />
</Canvas>
### Properties
<ArgsTable story="Default" />
### Import
```js
import AccessRightSelect from "@docspace/components/access-right-secelt";
```
#### Options is an array of objects that contains the following fields:
- key
- title
- description
- icon
- quota
- color
##### Example:
```js
{
key: "key1",
title: "Room administrator",
description: `Administration of rooms, archiving of rooms, inviting and managing users in rooms.`,
icon: CrownIconUrl,
quota: "free",
color: "#20D21F",
}
```