Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(floatinglabel component): fix imports and code examples #1242

Merged
merged 1 commit into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/floatingLabel/floatingLabel.disabled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { FloatingLabel } from '~/src';
const code = `
'use client';
import { Spinner } from 'flowbite-react';
import { FloatingLabel } from 'flowbite-react';
function Component() {
return (
Expand All @@ -18,7 +18,7 @@ function Component() {
`;

const codeRSC = `
import { Spinner } from 'flowbite-react';
import { FloatingLabel } from 'flowbite-react';
function Component() {
return (
Expand Down
4 changes: 2 additions & 2 deletions examples/floatingLabel/floatingLabel.helperText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { FloatingLabel } from '~/src';
const code = `
'use client';
import { Spinner } from 'flowbite-react';
import { FloatingLabel } from 'flowbite-react';
function Component() {
return (
Expand All @@ -18,7 +18,7 @@ function Component() {
`;

const codeRSC = `
import { Spinner } from 'flowbite-react';
import { FloatingLabel } from 'flowbite-react';
function Component() {
return (
Expand Down
4 changes: 2 additions & 2 deletions examples/floatingLabel/floatingLabel.root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { FloatingLabel } from '~/src';
const code = `
'use client';
import { Spinner } from 'flowbite-react';
import { FloatingLabel } from 'flowbite-react';
function Component() {
return (
Expand All @@ -18,7 +18,7 @@ function Component() {
`;

const codeRSC = `
import { Spinner } from 'flowbite-react';
import { FloatingLabel } from 'flowbite-react';
function Component() {
return (
Expand Down
4 changes: 2 additions & 2 deletions examples/floatingLabel/floatingLabel.sizes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { FloatingLabel } from '~/src';
const code = `
'use client';
import { Spinner } from 'flowbite-react';
import { FloatingLabel } from 'flowbite-react';
function Component() {
return (
Expand All @@ -25,7 +25,7 @@ function Component() {
`;

const codeRSC = `
import { Spinner } from 'flowbite-react';
import { FloatingLabel } from 'flowbite-react';
function Component() {
return (
Expand Down
40 changes: 20 additions & 20 deletions examples/floatingLabel/floatingLabel.validation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,41 +4,41 @@ import { FloatingLabel } from '~/src';
const code = `
'use client';
import { Spinner } from 'flowbite-react';
import { FloatingLabel } from 'flowbite-react';
function Component() {
return (
<>
<div className="grid grid-flow-col justify-stretch space-x-4">
<FloatingLabel variant="filled" label="Filled Success" color="error" />
<FloatingLabel variant="outlined" label="Outlined Success" color="error" />
<FloatingLabel variant="standard" label="Standard Success" color="error" />
<FloatingLabel variant="filled" label="Filled Success" color="success" />
<FloatingLabel variant="outlined" label="Outlined Success" color="success" />
<FloatingLabel variant="standard" label="Standard Success" color="success" />
</div>
<div className="grid grid-flow-col justify-stretch space-x-4">
<FloatingLabel variant="filled" label="Filled Error" color="success" />
<FloatingLabel variant="outlined" label="Outlined Error" color="success" />
<FloatingLabel variant="standard" label="Standard Error" color="success" />
<FloatingLabel variant="filled" label="Filled Error" color="error" />
<FloatingLabel variant="outlined" label="Outlined Error" color="error" />
<FloatingLabel variant="standard" label="Standard Error" color="error" />
</div>
</>
);
}
`;

const codeRSC = `
import { Spinner } from 'flowbite-react';
import { FloatingLabel } from 'flowbite-react';
function Component() {
return (
<>
<div className="grid grid-flow-col justify-stretch space-x-4">
<FloatingLabel variant="filled" label="Filled Success" color="error" />
<FloatingLabel variant="outlined" label="Outlined Success" color="error" />
<FloatingLabel variant="standard" label="Standard Success" color="error" />
<FloatingLabel variant="filled" label="Filled Success" color="success" />
<FloatingLabel variant="outlined" label="Outlined Success" color="success" />
<FloatingLabel variant="standard" label="Standard Success" color="success" />
</div>
<div className="grid grid-flow-col justify-stretch space-x-4">
<FloatingLabel variant="filled" label="Filled Error" color="success" />
<FloatingLabel variant="outlined" label="Outlined Error" color="success" />
<FloatingLabel variant="standard" label="Standard Error" color="success" />
<FloatingLabel variant="filled" label="Filled Error" color="error" />
<FloatingLabel variant="outlined" label="Outlined Error" color="error" />
<FloatingLabel variant="standard" label="Standard Error" color="error" />
</div>
</>
);
Expand All @@ -49,14 +49,14 @@ function Component() {
return (
<>
<div className="grid grid-flow-col justify-stretch space-x-4">
<FloatingLabel variant="filled" label="Filled Success" color="error" />
<FloatingLabel variant="outlined" label="Outlined Success" color="error" />
<FloatingLabel variant="standard" label="Standard Success" color="error" />
<FloatingLabel variant="filled" label="Filled Success" color="success" />
<FloatingLabel variant="outlined" label="Outlined Success" color="success" />
<FloatingLabel variant="standard" label="Standard Success" color="success" />
</div>
<div className="grid grid-flow-col justify-stretch space-x-4">
<FloatingLabel variant="filled" label="Filled Error" color="success" />
<FloatingLabel variant="outlined" label="Outlined Error" color="success" />
<FloatingLabel variant="standard" label="Standard Error" color="success" />
<FloatingLabel variant="filled" label="Filled Error" color="error" />
<FloatingLabel variant="outlined" label="Outlined Error" color="error" />
<FloatingLabel variant="standard" label="Standard Error" color="error" />
</div>
</>
);
Expand Down