Adding ListTile and CircleCheckbox components

This commit is contained in:
Alvaro 2023-01-25 09:54:32 -07:00 committed by GitHub
parent da0a741a36
commit 2d9cbf4795
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 497 additions and 0 deletions

View file

@ -0,0 +1,30 @@
// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import React from 'react';
import { action } from '@storybook/addon-actions';
import type { Props } from './CircleCheckbox';
import { CircleCheckbox } from './CircleCheckbox';
const createProps = (): Props => ({
checked: false,
name: 'check-me',
onChange: action('onChange'),
});
export default {
title: 'Components/CircleCheckbox',
};
export function Normal(): JSX.Element {
return <CircleCheckbox {...createProps()} />;
}
export function Checked(): JSX.Element {
return <CircleCheckbox {...createProps()} checked />;
}
export function Disabled(): JSX.Element {
return <CircleCheckbox {...createProps()} disabled />;
}