The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/client/components/basic/Input.stories.js

26 lines
618 B

import React from 'react';
import { Input } from './Input';
export default {
title: 'basic/Input',
component: Input,
};
export const _default = () => <Input />;
export const withTitle = () => <Input title='Title' />;
export const withError = () => <Input error='Error' />;
export const withIcon = () => <Input icon='key' />;
export const withPlaceholder = () => <Input placeholder='Placeholder' />;
export const focused = () => <Input focused />;
export const ofTypeSelect = () => <Input type='select' options={[
{ label: 'A', value: 'a' },
{ label: 'B', value: 'b' },
{ label: 'C', value: 'c' },
]} />;